Change locking boundaries for shared dict. Add a unit test.
[python_utils.git] / deferred_operand.py
index f2af66c4cc3ee908767af2b024a37bba096ff5d9..75e98d923d5bcccc135e4d5c05415c7949fac8a9 100644 (file)
@@ -3,6 +3,9 @@
 from abc import ABC, abstractmethod
 from typing import Any, Generic, TypeVar
 
+# This module is commonly used by others in here and should avoid
+# taking any unnecessary dependencies back on them.
+
 T = TypeVar('T')
 
 
@@ -146,7 +149,6 @@ class DeferredOperand(ABC, Generic[T]):
 
     def __getattr__(self, method_name):
         def method(*args, **kwargs):
-            return getattr(DeferredOperand.resolve(self), method_name)(
-                *args, **kwargs
-            )
+            return getattr(DeferredOperand.resolve(self), method_name)(*args, **kwargs)
+
         return method