diff options
Diffstat (limited to 'smart_future.py')
| -rw-r--r-- | smart_future.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/smart_future.py b/smart_future.py index 7dbec50..f11be17 100644 --- a/smart_future.py +++ b/smart_future.py @@ -6,6 +6,8 @@ import concurrent.futures as fut import time from typing import Callable, List, TypeVar +from overrides import overrides + # This module is commonly used by others in here and should avoid # taking any unnecessary dependencies back on them. from deferred_operand import DeferredOperand @@ -66,5 +68,6 @@ class SmartFuture(DeferredOperand): # You shouldn't have to call this; instead, have a look at defining a # method on DeferredOperand base class. + @overrides def _resolve(self, *, timeout=None) -> T: return self.wrapped_future.result(timeout) |
