updates to add type hinting to uses of Callable

This commit is contained in:
Blake Harnden 2020-01-15 11:56:23 -08:00
parent b3118513fa
commit dcabd8d6f8
9 changed files with 22 additions and 18 deletions

View file

@ -366,7 +366,7 @@ class TunTap(CoreInterface):
self.up = False
def waitfor(
self, func: Callable, attempts: int = 10, maxretrydelay: float = 0.25
self, func: Callable[[], int], attempts: int = 10, maxretrydelay: float = 0.25
) -> bool:
"""
Wait for func() to return zero with exponential backoff.