Skip to content

Commit 0dd9a23

Browse files
committed
Fix some minor typing issues
1 parent e46a395 commit 0dd9a23

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/dispatch/test/service.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
from collections import OrderedDict
77
from dataclasses import dataclass
88
from typing import Optional
9-
from typing_extensions import TypeAlias
109

1110
import grpc
1211
import httpx
12+
from typing_extensions import TypeAlias
1313

1414
import dispatch.sdk.v1.call_pb2 as call_pb
1515
import dispatch.sdk.v1.dispatch_pb2 as dispatch_pb
@@ -87,11 +87,11 @@ def __init__(
8787
self.pollers: dict[DispatchID, Poller] = {}
8888
self.parents: dict[DispatchID, Poller] = {}
8989

90-
self.roundtrips: OrderedDict[DispatchID, list[RoundTrip]] | None = None
90+
self.roundtrips: Optional[OrderedDict[DispatchID, list[RoundTrip]]] = None
9191
if collect_roundtrips:
9292
self.roundtrips = OrderedDict()
9393

94-
self._thread: threading.Optional[Thread] = None
94+
self._thread: Optional[threading.Thread] = None
9595
self._stop_event = threading.Event()
9696
self._work_signal = threading.Condition()
9797

0 commit comments

Comments
 (0)