From 4837595e36338028a955edd8573da7acc54ed44c Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 23 Jan 2020 01:32:02 -0500 Subject: [PATCH] Fake out mypy again --- tractor/_spawn.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tractor/_spawn.py b/tractor/_spawn.py index 13bcb9a..b51f1f8 100644 --- a/tractor/_spawn.py +++ b/tractor/_spawn.py @@ -66,10 +66,6 @@ def try_set_start_method(name: str) -> mp.context.BaseContext: f"Spawn method {name} is unsupported please choose one of {allowed}" ) - if name == 'trip': - _spawn_method = name - return name - elif name == 'fork': raise ValueError( "`fork` is unsupported due to incompatibility with `trio`" @@ -78,6 +74,7 @@ def try_set_start_method(name: str) -> mp.context.BaseContext: _forkserver_override.override_stdlib() _ctx = mp.get_context(name) + _spawn_method = name return _ctx