summaryrefslogtreecommitdiff
path: root/smart_future.py
diff options
context:
space:
mode:
authorScott Gasch <[email protected]>2021-10-31 13:08:51 -0700
committerScott Gasch <[email protected]>2021-10-31 13:08:51 -0700
commiteb9e6df32ed696158bf34dba6464277b648f5c74 (patch)
tree54ae278562008b0ffa834b2d34b2158d9119dc65 /smart_future.py
parent05a26ae305adfc47f38b8534ec8f35640df3955e (diff)
Ugh, a bunch of things. @overrides. --lmodule. Chromecasts. etc...
Diffstat (limited to 'smart_future.py')
-rw-r--r--smart_future.py3
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)