Apply patch [skip ci]

This commit is contained in:
open-swe[bot]
2025-09-09 23:48:13 +00:00
parent 1419726099
commit 50213904e8

View File

@@ -256,7 +256,6 @@ def test_batch_no_race_conditions() -> None:
def test_batch_with_varying_processing_times() -> None:
"""Test that batch preserves order even with varying processing times."""
import random
class VariableDelayRunnable(Runnable[str, str]):
"""A runnable with variable processing delays."""
@@ -264,6 +263,7 @@ def test_batch_with_varying_processing_times() -> None:
def invoke(
self, input: str, config: Optional[RunnableConfig] = None, **kwargs: Any
) -> str:
del config, kwargs # Unused but required by interface
# Random delay to simulate varying processing times
delay = random.uniform(0.001, 0.01)
time.sleep(delay)
@@ -313,3 +313,4 @@ if __name__ == "__main__":