stdlib: audit more callback annotations (#8209)

This commit is contained in:
Alex Waygood
2022-07-19 15:07:25 +01:00
committed by GitHub
parent 540a6b25bf
commit e2ce7c6344
21 changed files with 61 additions and 64 deletions

View File

@@ -1,5 +1,5 @@
from collections.abc import Callable
from typing import Any, TypeVar
from typing import TypeVar
from typing_extensions import ParamSpec
_T = TypeVar("_T")
@@ -9,4 +9,4 @@ 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]: ...
def unregister(func: Callable[..., Any]) -> None: ...
def unregister(func: Callable[..., object]) -> None: ...