massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / atexit.pyi
1 from typing import Any, Callable, TypeVar
2 from typing_extensions import ParamSpec
3
4 _T = TypeVar("_T")
5 _P = ParamSpec("_P")
6
7 def _clear() -> None: ...
8 def _ncallbacks() -> int: ...
9 def _run_exitfuncs() -> None: ...
10 def register(func: Callable[_P, _T], *args: _P.args, **kwargs: _P.kwargs) -> Callable[_P, _T]: ...  # type: ignore
11 def unregister(func: Callable[..., Any]) -> None: ...