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:
@@ -77,9 +77,9 @@ class partialmethod(Generic[_T]):
|
||||
args: Tuple[Any, ...]
|
||||
keywords: Dict[str, Any]
|
||||
@overload
|
||||
def __init__(self, func: Callable[..., _T], *args: Any, **keywords: Any) -> None: ...
|
||||
def __init__(self, __func: Callable[..., _T], *args: Any, **keywords: Any) -> None: ...
|
||||
@overload
|
||||
def __init__(self, func: _Descriptor, *args: Any, **keywords: Any) -> None: ...
|
||||
def __init__(self, __func: _Descriptor, *args: Any, **keywords: Any) -> None: ...
|
||||
def __get__(self, obj: Any, cls: Type[Any]) -> Callable[..., _T]: ...
|
||||
@property
|
||||
def __isabstractmethod__(self) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user