Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stdlib/@python2/lib2to3/pgen2/pgen.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ class DFAState:
def __init__(self, nfaset: dict[NFAState, Any], final: NFAState) -> None: ...
def addarc(self, next: DFAState, label: Text) -> None: ...
def unifystate(self, old: DFAState, new: DFAState) -> None: ...
def __eq__(self, other: Any) -> bool: ...
def __eq__(self, other: DFAState) -> bool: ... # type: ignore[override]

def generate_grammar(filename: StrPath = ...) -> PgenGrammar: ...
2 changes: 1 addition & 1 deletion stdlib/@python2/lib2to3/pytree.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Base:
children: list[_NL]
was_changed: bool
was_checked: bool
def __eq__(self, other: Any) -> bool: ...
def __eq__(self, other: object) -> bool: ...
Comment thread
Akuli marked this conversation as resolved.
def _eq(self: _P, other: _P) -> bool: ...
def clone(self: Self) -> Self: ...
def post_order(self) -> Iterator[_NL]: ...
Expand Down
4 changes: 2 additions & 2 deletions stdlib/@python2/numbers.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ class Complex(Number):
def __rpow__(self, base: Any) -> Any: ...
def __abs__(self) -> Real: ...
def conjugate(self) -> Any: ...
def __eq__(self, other: Any) -> bool: ...
def __ne__(self, other: Any) -> bool: ...
def __eq__(self, other: object) -> bool: ...
def __ne__(self, other: object) -> bool: ...

class Real(Complex, SupportsFloat):
@abstractmethod
Expand Down
4 changes: 2 additions & 2 deletions stdlib/@python2/sets.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ class BaseSet(Iterable[_T]):
def __len__(self) -> int: ...
def __iter__(self) -> Iterator[_T]: ...
def __cmp__(self, other: Any) -> int: ...
def __eq__(self, other: Any) -> bool: ...
def __ne__(self, other: Any) -> bool: ...
def __eq__(self, other: object) -> bool: ...
def __ne__(self, other: object) -> bool: ...
def copy(self: Self) -> Self: ...
def __copy__(self: Self) -> Self: ...
def __deepcopy__(self: Self, memo: MutableMapping[int, BaseSet[_T]]) -> Self: ...
Expand Down
2 changes: 1 addition & 1 deletion stdlib/@python2/xml/dom/minidom.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class NamedNodeMap:
def values(self): ...
def get(self, name, value: Any | None = ...): ...
def __len__(self) -> int: ...
def __eq__(self, other: Any) -> bool: ...
def __eq__(self, other: object) -> bool: ...
def __ge__(self, other: Any) -> bool: ...
def __gt__(self, other: Any) -> bool: ...
def __le__(self, other: Any) -> bool: ...
Expand Down
6 changes: 3 additions & 3 deletions stdlib/email/charset.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, Iterator
from typing import Iterator

QP: int # undocumented
BASE64: int # undocumented
Expand All @@ -17,8 +17,8 @@ class Charset:
def header_encode(self, string: str) -> str: ...
def header_encode_lines(self, string: str, maxlengths: Iterator[int]) -> list[str]: ...
def body_encode(self, string: str) -> str: ...
def __eq__(self, other: Any) -> bool: ...
def __ne__(self, other: Any) -> bool: ...
def __eq__(self, other: object) -> bool: ...
def __ne__(self, other: object) -> bool: ...

def add_charset(
charset: str, header_enc: int | None = ..., body_enc: int | None = ..., output_charset: str | None = ...
Expand Down
5 changes: 2 additions & 3 deletions stdlib/email/header.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from email.charset import Charset
from typing import Any

class Header:
def __init__(
Expand All @@ -13,8 +12,8 @@ class Header:
) -> None: ...
def append(self, s: bytes | str, charset: Charset | str | None = ..., errors: str = ...) -> None: ...
def encode(self, splitchars: str = ..., maxlinelen: int | None = ..., linesep: str = ...) -> str: ...
def __eq__(self, other: Any) -> bool: ...
def __ne__(self, other: Any) -> bool: ...
def __eq__(self, other: object) -> bool: ...
def __ne__(self, other: object) -> bool: ...

def decode_header(header: Header | str) -> list[tuple[bytes, str | None]]: ...
def make_header(
Expand Down
4 changes: 2 additions & 2 deletions stdlib/ipaddress.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ def ip_network(address: object, strict: bool = ...) -> IPv4Network | IPv6Network
def ip_interface(address: object) -> IPv4Interface | IPv6Interface: ...

class _IPAddressBase:
def __eq__(self, other: Any) -> bool: ...
def __eq__(self, other: object) -> bool: ...
def __ge__(self: Self, other: Self) -> bool: ...
def __gt__(self: Self, other: Self) -> bool: ...
def __le__(self: Self, other: Self) -> bool: ...
def __lt__(self: Self, other: Self) -> bool: ...
def __ne__(self, other: Any) -> bool: ...
def __ne__(self, other: object) -> bool: ...
@property
def compressed(self) -> str: ...
@property
Expand Down
2 changes: 1 addition & 1 deletion stdlib/lib2to3/pgen2/pgen.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ class DFAState:
def __init__(self, nfaset: dict[NFAState, Any], final: NFAState) -> None: ...
def addarc(self, next: DFAState, label: str) -> None: ...
def unifystate(self, old: DFAState, new: DFAState) -> None: ...
def __eq__(self, other: Any) -> bool: ...
def __eq__(self, other: DFAState) -> bool: ... # type: ignore[override]

def generate_grammar(filename: StrPath = ...) -> PgenGrammar: ...
2 changes: 1 addition & 1 deletion stdlib/lib2to3/pytree.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Base:
children: list[_NL]
was_changed: bool
was_checked: bool
def __eq__(self, other: Any) -> bool: ...
def __eq__(self, other: object) -> bool: ...
def _eq(self: Self, other: Self) -> bool: ...
def clone(self: Self) -> Self: ...
def post_order(self) -> Iterator[_NL]: ...
Expand Down
2 changes: 1 addition & 1 deletion stdlib/numbers.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Complex(Number):
def __rpow__(self, base: Any) -> Any: ...
def __abs__(self) -> Real: ...
def conjugate(self) -> Any: ...
def __eq__(self, other: Any) -> bool: ...
def __eq__(self, other: object) -> bool: ...

class Real(Complex, SupportsFloat):
@abstractmethod
Expand Down
4 changes: 2 additions & 2 deletions stdlib/types.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,8 @@ if sys.version_info >= (3, 7):
__qualname__: str
__objclass__: type
def __call__(self, *args: Any, **kwargs: Any) -> Any: ...
def __eq__(self, other: Any) -> bool: ...
def __ne__(self, other: Any) -> bool: ...
def __eq__(self, other: object) -> bool: ...
def __ne__(self, other: object) -> bool: ...
@final
class MethodDescriptorType:
__name__: str
Expand Down
2 changes: 1 addition & 1 deletion stdlib/typing.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ if sys.version_info >= (3, 7):
else:
def __init__(self, arg: str, is_argument: bool = ...) -> None: ...
def _evaluate(self, globalns: dict[str, Any] | None, localns: dict[str, Any] | None) -> Any | None: ...
def __eq__(self, other: Any) -> bool: ...
def __eq__(self, other: object) -> bool: ...
def __hash__(self) -> int: ...
if sys.version_info >= (3, 11):
def __or__(self, other: Any) -> _SpecialForm: ...
Expand Down
9 changes: 5 additions & 4 deletions stdlib/unittest/mock.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import sys
from typing import Any, Awaitable, Callable, Generic, Iterable, Mapping, Sequence, TypeVar, overload
from typing_extensions import Literal

_T = TypeVar("_T")
_TT = TypeVar("_TT", bound=type[Any])
Expand Down Expand Up @@ -83,8 +84,8 @@ class _Call(tuple[Any, ...]):
def __init__(
self, value: Any = ..., name: Any | None = ..., parent: Any | None = ..., two: bool = ..., from_kall: bool = ...
) -> None: ...
def __eq__(self, other: Any) -> bool: ...
__ne__: Any
def __eq__(self, other: object) -> bool: ...
def __ne__(self, other: object) -> bool: ...
def __call__(self, *args: Any, **kwargs: Any) -> _Call: ...
def __getattr__(self, attr: Any) -> Any: ...
if sys.version_info >= (3, 8):
Expand Down Expand Up @@ -418,8 +419,8 @@ class MagicProxy:
def __get__(self, obj, _type: Any | None = ...): ...

class _ANY:
def __eq__(self, other: Any) -> bool: ...
def __ne__(self, other: Any) -> bool: ...
def __eq__(self, other: object) -> Literal[True]: ...
def __ne__(self, other: object) -> Literal[False]: ...

ANY: Any

Expand Down
2 changes: 1 addition & 1 deletion stdlib/xml/dom/minidom.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class NamedNodeMap:
def values(self): ...
def get(self, name, value: Any | None = ...): ...
def __len__(self) -> int: ...
def __eq__(self, other: Any) -> bool: ...
def __eq__(self, other: object) -> bool: ...
def __ge__(self, other: Any) -> bool: ...
def __gt__(self, other: Any) -> bool: ...
def __le__(self, other: Any) -> bool: ...
Expand Down
2 changes: 1 addition & 1 deletion stubs/boto/boto/utils.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class Password:
str: _str | None
def __init__(self, str: _str | None = ..., hashfunc: Callable[[bytes], _HashType] | None = ...) -> None: ...
def set(self, value: bytes | _str) -> None: ...
def __eq__(self, other: Any) -> bool: ...
def __eq__(self, other: _str | bytes | None) -> bool: ... # type: ignore[override]
def __len__(self) -> int: ...

def notify(
Expand Down
2 changes: 1 addition & 1 deletion stubs/invoke/invoke/tasks.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class Call:
) -> None: ...
def __getattr__(self, name: str) -> Any: ...
def __deepcopy__(self, memo: Any) -> Task: ...
def __eq__(self, other: Any) -> bool: ...
def __eq__(self, other: Call) -> bool: ... # type: ignore[override]
def make_context(self, config: Config) -> Context: ...
def clone_data(self): ...
# TODO use overload
Expand Down
4 changes: 2 additions & 2 deletions stubs/ipaddress/@python2/ipaddress.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ def ip_network(address: object, strict: bool = ...) -> Any: ... # morally Union
def ip_interface(address: object) -> Any: ... # morally Union[IPv4Interface, IPv6Interface]

class _IPAddressBase:
def __eq__(self, other: Any) -> bool: ...
def __eq__(self, other: object) -> bool: ...
def __ge__(self: _T, other: _T) -> bool: ...
def __gt__(self: _T, other: _T) -> bool: ...
def __le__(self: _T, other: _T) -> bool: ...
def __lt__(self: _T, other: _T) -> bool: ...
def __ne__(self, other: Any) -> bool: ...
def __ne__(self, other: object) -> bool: ...
@property
def compressed(self) -> Text: ...
@property
Expand Down
9 changes: 5 additions & 4 deletions stubs/mock/mock/mock.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from collections.abc import Callable, Mapping, Sequence
from typing import Any, Generic, TypeVar, overload
from typing_extensions import Literal

_F = TypeVar("_F", bound=Callable[..., Any])
_T = TypeVar("_T")
Expand Down Expand Up @@ -40,8 +41,8 @@ class _Call(tuple[Any, ...]):
def __init__(
self, value: Any = ..., name: Any | None = ..., parent: Any | None = ..., two: bool = ..., from_kall: bool = ...
) -> None: ...
def __eq__(self, other: Any) -> bool: ...
__ne__: Any
def __eq__(self, other: object) -> bool: ...
def __ne__(self, other: object) -> bool: ...
def __call__(self, *args: Any, **kwargs: Any) -> _Call: ...
def __getattr__(self, attr: str) -> Any: ...
@property
Expand Down Expand Up @@ -278,8 +279,8 @@ class MagicProxy(Base):
def __get__(self, obj: Any, _type: Any | None = ...) -> Any: ...

class _ANY:
def __eq__(self, other: Any) -> bool: ...
def __ne__(self, other: Any) -> bool: ...
def __eq__(self, other: object) -> Literal[True]: ...
def __ne__(self, other: object) -> Literal[False]: ...

ANY: Any

Expand Down
4 changes: 2 additions & 2 deletions stubs/polib/polib.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ class POEntry(_BaseEntry):
def __lt__(self, other: POEntry) -> bool: ...
def __ge__(self, other: POEntry) -> bool: ...
def __le__(self, other: POEntry) -> bool: ...
def __eq__(self, other: Any) -> bool: ...
def __ne__(self, other: Any) -> bool: ...
def __eq__(self, other: POEntry) -> bool: ... # type: ignore[override]
def __ne__(self, other: POEntry) -> bool: ... # type: ignore[override]
def translated(self) -> bool: ...
def merge(self, other: POEntry) -> None: ...
@property
Expand Down
2 changes: 1 addition & 1 deletion stubs/setuptools/pkg_resources/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class Requirement:
@staticmethod
def parse(s: str | Iterable[str]) -> Requirement: ...
def __contains__(self, item: Distribution | str | tuple[str, ...]) -> bool: ...
def __eq__(self, other_requirement: Any) -> bool: ...
def __eq__(self, other_requirement: object) -> bool: ...

def load_entry_point(dist: _EPDistType, group: str, name: str) -> Any: ...
def get_entry_info(dist: _EPDistType, group: str, name: str) -> EntryPoint | None: ...
Expand Down