mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
os.register_at_fork: fix signature (#3720)
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user