File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1014,7 +1014,7 @@ async def aconnect(self) -> None:
1014
1014
"""Explicitly connect to MongoDB asynchronously instead of on the first operation."""
1015
1015
await self ._get_topology ()
1016
1016
1017
- def _init_background (self , old_pid : Optional [int ] = None , first = False ) -> None :
1017
+ def _init_background (self , old_pid : Optional [int ] = None , first : bool = False ) -> None :
1018
1018
self ._topology = Topology (self ._topology_settings )
1019
1019
if first and _HAS_REGISTER_AT_FORK :
1020
1020
# Add this client to the list of weakly referenced items.
Original file line number Diff line number Diff line change @@ -1012,7 +1012,7 @@ def _connect(self) -> None:
1012
1012
"""Explicitly connect to MongoDB synchronously instead of on the first operation."""
1013
1013
self ._get_topology ()
1014
1014
1015
- def _init_background (self , old_pid : Optional [int ] = None , first = False ) -> None :
1015
+ def _init_background (self , old_pid : Optional [int ] = None , first : bool = False ) -> None :
1016
1016
self ._topology = Topology (self ._topology_settings )
1017
1017
if first and _HAS_REGISTER_AT_FORK :
1018
1018
# Add this client to the list of weakly referenced items.
You can’t perform that action at this time.
0 commit comments