| 1 | from collections.abc import Callable |
| 2 | from typing import TypeVar |
| 3 | from typing_extensions import ParamSpec |
| 4 | |
| 5 | _T = TypeVar("_T") |
| 6 | _P = ParamSpec("_P") |
| 7 | |
| 8 | def _clear() -> None: ... |
| 9 | def _ncallbacks() -> int: ... |
| 10 | def _run_exitfuncs() -> None: ... |
| 11 | def register(func: Callable[_P, _T], /, *args: _P.args, **kwargs: _P.kwargs) -> Callable[_P, _T]: ... |
| 12 | def unregister(func: Callable[..., object], /) -> None: ... |