mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
mark some positional-only arguments (#4693)
https://github.com/python/mypy/pull/9626 will make stubtest a little bit stricter about positional-only arguments for dunders like __init__ Co-authored-by: hauntsaninja <>
This commit is contained in:
@@ -111,7 +111,7 @@ class WeakKeyDictionary(MutableMapping[_KT, _VT]):
|
||||
|
||||
if sys.version_info >= (3, 4):
|
||||
class finalize:
|
||||
def __init__(self, obj: _S, func: Callable[..., _T], *args: Any, **kwargs: Any) -> None: ...
|
||||
def __init__(self, __obj: _S, __func: Callable[..., _T], *args: Any, **kwargs: Any) -> None: ...
|
||||
def __call__(self, _: Any = ...) -> Optional[_T]: ...
|
||||
def detach(self) -> Optional[Tuple[_S, _T, Tuple[Any, ...], Dict[str, Any]]]: ...
|
||||
def peek(self) -> Optional[Tuple[_S, _T, Tuple[Any, ...], Dict[str, Any]]]: ...
|
||||
|
||||
Reference in New Issue
Block a user