Skip to content

Commit 2653a56

Browse files
committed
fix typing
1 parent 1de56d4 commit 2653a56

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

pymongo/asynchronous/mongo_client.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
AsyncContextManager,
4545
AsyncGenerator,
4646
Callable,
47+
Collection,
4748
Coroutine,
4849
FrozenSet,
4950
Generic,
@@ -930,7 +931,9 @@ def _resolve_srv(self) -> None:
930931

931932
self._init_based_on_options(seeds, srv_max_hosts, srv_service_name)
932933

933-
def _init_based_on_options(self, seeds, srv_max_hosts, srv_service_name):
934+
def _init_based_on_options(
935+
self, seeds: Collection[tuple[str, int]], srv_max_hosts: Any, srv_service_name: Any
936+
) -> None:
934937
self._event_listeners = self._options.pool_options._event_listeners
935938
super().__init__(
936939
self._options.codec_options,

pymongo/synchronous/mongo_client.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
TYPE_CHECKING,
4343
Any,
4444
Callable,
45+
Collection,
4546
ContextManager,
4647
FrozenSet,
4748
Generator,
@@ -928,7 +929,9 @@ def _resolve_srv(self) -> None:
928929

929930
self._init_based_on_options(seeds, srv_max_hosts, srv_service_name)
930931

931-
def _init_based_on_options(self, seeds, srv_max_hosts, srv_service_name):
932+
def _init_based_on_options(
933+
self, seeds: Collection[tuple[str, int]], srv_max_hosts: Any, srv_service_name: Any
934+
) -> None:
932935
self._event_listeners = self._options.pool_options._event_listeners
933936
super().__init__(
934937
self._options.codec_options,

0 commit comments

Comments
 (0)