Bugfixes in executors.
[python_utils.git] / smart_future.py
index 7dbec5004b4ba927331e71fb812fd482af678c3c..f11be17bc0fabfeb4a111e4b3356bbcb1ed1633a 100644 (file)
@@ -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)