updates to add type hinting to uses of Callable
This commit is contained in:
parent
b3118513fa
commit
dcabd8d6f8
9 changed files with 22 additions and 18 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue