From 7d19205540792519fb86dc19674306219c8ebbf0 Mon Sep 17 00:00:00 2001 From: Iris <58442094+sleepyStick@users.noreply.github.com> Date: Wed, 28 Jun 2023 09:29:32 -0700 Subject: [PATCH] PYTHON-3782 add types to lock.py (#1271) --- pymongo/lock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymongo/lock.py b/pymongo/lock.py index b7c01f56b..741876afc 100644 --- a/pymongo/lock.py +++ b/pymongo/lock.py @@ -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. """