forked from p15670423/monkey
Agent: Add missing return type hint to _try_communicate_with_island()
This commit is contained in:
parent
aff54232e9
commit
bba7139be6
|
@ -112,7 +112,7 @@ class AutomatedMaster(IMaster):
|
||||||
time.sleep(CHECK_FOR_TERMINATE_INTERVAL_SEC)
|
time.sleep(CHECK_FOR_TERMINATE_INTERVAL_SEC)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _try_communicate_with_island(fn: Callable[[], Any], max_tries: int):
|
def _try_communicate_with_island(fn: Callable[[], Any], max_tries: int) -> Any:
|
||||||
tries = 0
|
tries = 0
|
||||||
while tries < max_tries:
|
while tries < max_tries:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue