Skip to content

Commit b5cadec

Browse files
committed
fix: Address linting issues for Python 3.9 compatibility
- Replace with for better style - Remove unused variables to pass ruff checks
1 parent 8228769 commit b5cadec

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_serialization_context.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ async def test_heartbeat_details_payload_conversion(client: Client):
406406
if (
407407
item.context_type == "activity"
408408
and item.method == "from_payload"
409-
and item.in_workflow == False
409+
and not item.in_workflow
410410
and item.context == activity_context
411411
):
412412
found_heartbeat_decode = True
@@ -830,7 +830,6 @@ async def test_external_workflow_signal_and_cancel_payload_conversion(
830830
):
831831
target_workflow_id = str(uuid.uuid4())
832832
signaler_workflow_id = str(uuid.uuid4())
833-
canceller_workflow_id = str(uuid.uuid4())
834833
task_queue = str(uuid.uuid4())
835834

836835
data_converter = dataclasses.replace(
@@ -869,7 +868,7 @@ async def test_external_workflow_signal_and_cancel_payload_conversion(
869868

870869
# Wait for both to complete
871870
signaler_result = await signaler_handle.result()
872-
target_result = await target_handle.result()
871+
await target_handle.result()
873872

874873
# Verify signal trace
875874
signaler_context = dataclasses.asdict(

0 commit comments

Comments
 (0)