diff --git a/examples/debugging/fast_error_in_root_after_spawn.py b/examples/debugging/fast_error_in_root_after_spawn.py index 5c2fdce2..a3953d36 100644 --- a/examples/debugging/fast_error_in_root_after_spawn.py +++ b/examples/debugging/fast_error_in_root_after_spawn.py @@ -35,7 +35,7 @@ async def open_ctx( assert first is None -async def main(): +async def main() -> None: async with tractor.open_nursery( debug_mode=True, diff --git a/examples/debugging/multi_daemon_subactors.py b/examples/debugging/multi_daemon_subactors.py index e313803a..95822f93 100644 --- a/examples/debugging/multi_daemon_subactors.py +++ b/examples/debugging/multi_daemon_subactors.py @@ -20,7 +20,7 @@ async def name_error(): getattr(doggypants) # noqa -async def main(): +async def main() -> None: ''' Test breakpoint in a streaming actor. diff --git a/examples/debugging/multi_nested_subactors_error_up_through_nurseries.py b/examples/debugging/multi_nested_subactors_error_up_through_nurseries.py index 9929b498..2895f0e6 100644 --- a/examples/debugging/multi_nested_subactors_error_up_through_nurseries.py +++ b/examples/debugging/multi_nested_subactors_error_up_through_nurseries.py @@ -63,7 +63,7 @@ async def spawn_until(depth=0): # TODO: notes on the new boxed-relayed errors through proxy actors -async def main(): +async def main() -> None: """The main ``tractor`` routine. The process tree should look as approximately as follows when the debugger diff --git a/examples/debugging/multi_subactor_root_errors.py b/examples/debugging/multi_subactor_root_errors.py index 5aa3a4ff..b934c515 100644 --- a/examples/debugging/multi_subactor_root_errors.py +++ b/examples/debugging/multi_subactor_root_errors.py @@ -23,7 +23,7 @@ async def spawn_error(): ) -async def main(): +async def main() -> None: """The main ``tractor`` routine. The process tree should look as approximately as follows: diff --git a/examples/debugging/multi_subactors.py b/examples/debugging/multi_subactors.py index 63ab5404..f2ea18c9 100644 --- a/examples/debugging/multi_subactors.py +++ b/examples/debugging/multi_subactors.py @@ -25,7 +25,7 @@ async def spawn_error(): ) -async def main(): +async def main() -> None: """The main ``tractor`` routine. The process tree should look as approximately as follows: diff --git a/examples/debugging/per_actor_debug.py b/examples/debugging/per_actor_debug.py index 189fb45e..c5abe450 100644 --- a/examples/debugging/per_actor_debug.py +++ b/examples/debugging/per_actor_debug.py @@ -5,7 +5,7 @@ async def die(): raise RuntimeError -async def main(): +async def main() -> None: async with tractor.open_nursery() as an: debug_actor = await an.start_actor( diff --git a/examples/debugging/pm_in_subactor.py b/examples/debugging/pm_in_subactor.py index a8f5048e..a9728a6b 100644 --- a/examples/debugging/pm_in_subactor.py +++ b/examples/debugging/pm_in_subactor.py @@ -18,7 +18,7 @@ async def name_error( raise -async def main(): +async def main() -> None: ''' Test 3 `PdbREPL` entries: - one in the child due to manual `.post_mortem()`, diff --git a/examples/debugging/root_actor_breakpoint.py b/examples/debugging/root_actor_breakpoint.py index 55b4ca56..347123ef 100644 --- a/examples/debugging/root_actor_breakpoint.py +++ b/examples/debugging/root_actor_breakpoint.py @@ -2,7 +2,7 @@ import trio import tractor -async def main(): +async def main() -> None: async with tractor.open_root_actor( debug_mode=True, diff --git a/examples/debugging/root_actor_error.py b/examples/debugging/root_actor_error.py index fab46335..49359f16 100644 --- a/examples/debugging/root_actor_error.py +++ b/examples/debugging/root_actor_error.py @@ -2,7 +2,7 @@ import trio import tractor -async def main(): +async def main() -> None: async with tractor.open_root_actor( debug_mode=True, ): diff --git a/examples/debugging/root_cancelled_but_child_is_in_tty_lock.py b/examples/debugging/root_cancelled_but_child_is_in_tty_lock.py index 75e1c9a4..ca15530b 100644 --- a/examples/debugging/root_cancelled_but_child_is_in_tty_lock.py +++ b/examples/debugging/root_cancelled_but_child_is_in_tty_lock.py @@ -27,7 +27,7 @@ async def spawn_until(depth=0): ) -async def main(): +async def main() -> None: ''' The process tree should look as approximately as follows when the debugger first engages: diff --git a/examples/debugging/root_self_cancelled_w_error.py b/examples/debugging/root_self_cancelled_w_error.py index b3c15288..e5ebbacc 100644 --- a/examples/debugging/root_self_cancelled_w_error.py +++ b/examples/debugging/root_self_cancelled_w_error.py @@ -2,7 +2,7 @@ import trio import tractor -async def main(): +async def main() -> None: async with tractor.open_root_actor( debug_mode=True, loglevel='cancel', diff --git a/examples/debugging/root_timeout_while_child_crashed.py b/examples/debugging/root_timeout_while_child_crashed.py index 043cb5c7..11533a8e 100644 --- a/examples/debugging/root_timeout_while_child_crashed.py +++ b/examples/debugging/root_timeout_while_child_crashed.py @@ -7,7 +7,7 @@ async def key_error(): return {}['doggy'] -async def main(): +async def main() -> None: ''' Root is fail-after-cancelled while blocking and child RPC fails simultaneously. diff --git a/examples/debugging/shielded_pause.py b/examples/debugging/shielded_pause.py index 5a8c50e7..cfa8f4f8 100644 --- a/examples/debugging/shielded_pause.py +++ b/examples/debugging/shielded_pause.py @@ -71,7 +71,7 @@ async def cancelled_before_pause( await pm_on_cancelled() -async def main(): +async def main() -> None: async with tractor.open_nursery( debug_mode=True, ) as an: diff --git a/examples/debugging/subactor_bp_in_ctx.py b/examples/debugging/subactor_bp_in_ctx.py index 36d4b2b3..eafeb0b7 100644 --- a/examples/debugging/subactor_bp_in_ctx.py +++ b/examples/debugging/subactor_bp_in_ctx.py @@ -34,7 +34,7 @@ async def just_bp( -async def main(): +async def main() -> None: # !TODO, parametrize the --tpt-proto={key} with osenv vars just # like we do for loglevel/spawn-backend! diff --git a/examples/debugging/subactor_breakpoint.py b/examples/debugging/subactor_breakpoint.py index e3a4f250..0a047a21 100644 --- a/examples/debugging/subactor_breakpoint.py +++ b/examples/debugging/subactor_breakpoint.py @@ -12,7 +12,7 @@ async def breakpoint_forever(): await tractor.pause() -async def main(): +async def main() -> None: async with tractor.open_nursery( debug_mode=True, diff --git a/examples/debugging/subactor_error.py b/examples/debugging/subactor_error.py index 95c1fe12..fd280cb9 100644 --- a/examples/debugging/subactor_error.py +++ b/examples/debugging/subactor_error.py @@ -6,7 +6,7 @@ async def name_error(): getattr(doggypants) # noqa (on purpose) -async def main(): +async def main() -> None: async with tractor.open_nursery( debug_mode=True, ) as an: