Add more type annotations

This commit is contained in:
Kovid Goyal
2021-10-27 08:45:45 +05:30
parent 4494ddd8ff
commit 9c2f96f7eb
4 changed files with 36 additions and 27 deletions
+1 -1
View File
@@ -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)