PYTHON-3782 add types to lock.py (#1271)
This commit is contained in:
parent
91711ee366
commit
7d19205540
@ -22,7 +22,7 @@ _HAS_REGISTER_AT_FORK = hasattr(os, "register_at_fork")
|
||||
_forkable_locks: weakref.WeakSet = weakref.WeakSet()
|
||||
|
||||
|
||||
def _create_lock():
|
||||
def _create_lock() -> threading.Lock:
|
||||
"""Represents a lock that is tracked upon instantiation using a WeakSet and
|
||||
reset by pymongo upon forking.
|
||||
"""
|
||||
|
||||
Loading…
Reference in New Issue
Block a user