IntEnum -> Enum to fix printing of enum values.
[python_utils.git] / deferred_operand.py
index 75e98d923d5bcccc135e4d5c05415c7949fac8a9..1de2bfb0931ffa8b9bfdd754e7ac00ad3551af90 100644 (file)
@@ -1,5 +1,9 @@
 #!/usr/bin/env python3
 
+"""This is a helper class that tries to define every __dunder__ method
+so as to defer that evaluation of an object as long as possible.  It
+is used by smart_future.py as a base class."""
+
 from abc import ABC, abstractmethod
 from typing import Any, Generic, TypeVar
 
@@ -15,7 +19,7 @@ class DeferredOperand(ABC, Generic[T]):
     """
 
     @abstractmethod
-    def _resolve(self) -> T:
+    def _resolve(self, timeout=None) -> T:
         pass
 
     @staticmethod