Add more type annotations
This commit is contained in:
+1
-1
@@ -107,7 +107,7 @@ else:
|
||||
self._override = RunOnce
|
||||
|
||||
|
||||
def run_once(f: Callable[[], _T]) -> RunOnce:
|
||||
def run_once(f: Callable[[], _T]) -> RunOnce[_T]:
|
||||
return RunOnce(f)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user