os.register_at_fork: fix signature (#3720)

This commit is contained in:
Shantanu
2020-02-05 07:22:24 -08:00
committed by GitHub
parent 12cbdcf337
commit fb286e1eb2

View File

@@ -649,7 +649,12 @@ if sys.version_info >= (3, 6):
def urandom(__size: int) -> bytes: ...
if sys.version_info >= (3, 7):
def register_at_fork(func: Callable[..., object], when: str) -> None: ...
def register_at_fork(
*,
before: Optional[Callable[..., Any]] = ...,
after_in_parent: Optional[Callable[..., Any]] = ...,
after_in_child: Optional[Callable[..., Any]] = ...,
) -> None: ...
if sys.version_info >= (3, 8):
if sys.platform == "win32":