forked from goodboy/tractor
Fake out mypy again
parent
4c5a60d06a
commit
4837595e36
|
@ -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}"
|
f"Spawn method {name} is unsupported please choose one of {allowed}"
|
||||||
)
|
)
|
||||||
|
|
||||||
if name == 'trip':
|
|
||||||
_spawn_method = name
|
|
||||||
return name
|
|
||||||
|
|
||||||
elif name == 'fork':
|
elif name == 'fork':
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
"`fork` is unsupported due to incompatibility with `trio`"
|
"`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()
|
_forkserver_override.override_stdlib()
|
||||||
_ctx = mp.get_context(name)
|
_ctx = mp.get_context(name)
|
||||||
|
|
||||||
|
_spawn_method = name
|
||||||
return _ctx
|
return _ctx
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue