Files
typeshed/stdlib/atexit.pyi
Anton Grübel ae86a93f45 add ParamSpec to atexit (#5896)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2021-08-11 20:49:30 -07:00

12 lines
383 B
Python

from typing import Any, Callable, TypeVar
from typing_extensions import ParamSpec
_T = TypeVar("_T")
_P = ParamSpec("_P")
def _clear() -> None: ...
def _ncallbacks() -> int: ...
def _run_exitfuncs() -> None: ...
def register(func: Callable[_P, _T], *args: _P.args, **kwargs: _P.kwargs) -> Callable[_P, _T]: ... # type: ignore
def unregister(func: Callable[..., Any]) -> None: ...