mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-07 12:44:33 +08:00
stdlib: audit more callback annotations (#8209)
This commit is contained in:
1 parent
540a6b25bf
commit
e2ce7c6344
21 files changed
+61
-64
No files matched your search
+2
-2
@@ -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: ...
|
||||
Reference in new issue
Block a user