Add missing type hints to atexit.register() (#571)

This commit is contained in:
Sebastian Meßmer
2016-09-23 22:35:55 +02:00
committed by Guido van Rossum
parent ed97067f6d
commit 34b343ba66

View File

@@ -5,5 +5,5 @@ from typing import Any, Callable
def _clear() -> None: ...
def _ncallbacks() -> int: ...
def _run_exitfuncs() -> None: ...
def register(func: Callable[..., Any], *args, **kwargs) -> Callable[..., Any]: ...
def register(func: Callable[..., Any], *args: Any, **kwargs: Any) -> Callable[..., Any]: ...
def unregister(func: Callable[..., Any]) -> None: ...