Skip to content

Commit 7facfa7

Browse files
committed
lint
Signed-off-by: Tim Li <[email protected]>
1 parent 9180cf5 commit 7facfa7

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

cadence/_internal/workflow/decision_events_iterator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"""
88

99
from dataclasses import dataclass, field
10-
from typing import List, Optional, AsyncIterator
10+
from typing import List, Optional
1111

1212
from cadence.api.v1.history_pb2 import HistoryEvent
1313
from cadence.api.v1.service_worker_pb2 import PollForDecisionTaskResponse

tests/cadence/_internal/workflow/test_decision_events_iterator.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
import pytest
77
from unittest.mock import Mock, AsyncMock
8-
from dataclasses import dataclass
98
from typing import List
109

1110
from cadence.api.v1.history_pb2 import HistoryEvent, History
@@ -225,7 +224,7 @@ async def test_pagination_support(self, mock_client):
225224
# Should process both pages
226225
iterations_count = 0
227226
while await iterator.has_next_decision_events():
228-
decision_events = await iterator.next_decision_events()
227+
await iterator.next_decision_events()
229228
iterations_count += 1
230229

231230
assert iterations_count == 2
@@ -342,7 +341,7 @@ async def test_replay_detection(self, mock_client):
342341
await iterator._ensure_initialized()
343342

344343
# First decision should be replay (but gets set to false when no more events)
345-
first_decision = await iterator.next_decision_events()
344+
await iterator.next_decision_events()
346345
# Since this test has incomplete events (no completion for the third decision),
347346
# the replay logic may behave differently
348347
# assert first_decision.is_replay()

0 commit comments

Comments
 (0)