Add more type annotations

This commit is contained in:
Kovid Goyal
2021-10-27 10:50:24 +05:30
parent 9c2f96f7eb
commit 6f19fd5912
5 changed files with 23 additions and 17 deletions

View File

@@ -107,7 +107,7 @@ else:
self._override = RunOnce
def run_once(f: Callable[[], _T]) -> RunOnce[_T]:
def run_once(f: Callable[[], _T]) -> 'RunOnce[_T]':
return RunOnce(f)