Skip to content

Commit 8ee8ab4

Browse files
author
Kevin Kirsche
committed
fix: remove todo and revert all previoius changes :(
1 parent f747349 commit 8ee8ab4

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

stdlib/weakref.pyi

+8-9
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,13 @@ __all__ = [
3131
"finalize",
3232
]
3333

34-
_CallableT = TypeVar("_CallableT", bound=Callable[..., Any])
35-
_KT = TypeVar("_KT")
36-
_P = ParamSpec("_P")
37-
_R = TypeVar("_R")
3834
_T = TypeVar("_T")
3935
_T1 = TypeVar("_T1")
4036
_T2 = TypeVar("_T2")
37+
_KT = TypeVar("_KT")
4138
_VT = TypeVar("_VT")
39+
_CallableT = TypeVar("_CallableT", bound=Callable[..., Any])
40+
_P = ParamSpec("_P")
4241

4342
ProxyTypes: tuple[type[Any], ...]
4443

@@ -125,11 +124,11 @@ class WeakKeyDictionary(MutableMapping[_KT, _VT]):
125124
@overload
126125
def __ior__(self: Self, other: Iterable[tuple[_KT, _VT]]) -> Self: ...
127126

128-
class finalize(Generic[_P, _T, _R]):
129-
def __init__(self, __obj: _T, __func: Callable[_P, _R], *args: _P.args, **kwargs: _P.kwargs) -> None: ...
130-
def __call__(self, _: object = ...) -> _R | None: ...
131-
def detach(self) -> tuple[_T, Callable[_P, _R], tuple[Any, ...], dict[str, Any]] | None: ...
132-
def peek(self) -> tuple[_T, Callable[_P, _R], tuple[Any, ...], dict[str, Any]] | None: ...
127+
class finalize:
128+
def __init__(self, __obj: object, __func: Callable[_P, Any], *args: _P.args, **kwargs: _P.kwargs) -> None: ...
129+
def __call__(self, _: Any = ...) -> Any | None: ...
130+
def detach(self) -> tuple[Any, Any, tuple[Any, ...], dict[str, Any]] | None: ...
131+
def peek(self) -> tuple[Any, Any, tuple[Any, ...], dict[str, Any]] | None: ...
133132
@property
134133
def alive(self) -> bool: ...
135134
atexit: bool

0 commit comments

Comments
 (0)