Fake out mypy again

try_trip^2
Tyler Goodlet 2020-01-23 01:32:02 -05:00
parent 4c5a60d06a
commit 4837595e36
1 changed files with 1 additions and 4 deletions

View File

@ -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