os.register_at_fork: fix signature (#3720)

This commit is contained in:
Shantanu authored and GitHub committed 2020-02-05 16:22:24 +01:00
1 parent 12cbdcf337
commit fb286e1eb2
1 file changed
+6 -1
+6 -1
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":