mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Ignore mypy errors in Python 2 builtins and typing (#7894)
Similar errors are already ignored in Python 3 stubs. The errors break Python 2 tests of mypy. See https://github.com/python/typeshed/issues/7367#issuecomment-1131472225 for context.
This commit is contained in:
@@ -711,7 +711,7 @@ class set(MutableSet[_T], Generic[_T]):
|
||||
def __and__(self, s: AbstractSet[object]) -> set[_T]: ...
|
||||
def __iand__(self: Self, s: AbstractSet[object]) -> Self: ...
|
||||
def __or__(self, s: AbstractSet[_S]) -> set[_T | _S]: ...
|
||||
def __ior__(self: Self, s: AbstractSet[_T]) -> Self: ...
|
||||
def __ior__(self: Self, s: AbstractSet[_T]) -> Self: ... # type: ignore[override,misc]
|
||||
@overload
|
||||
def __sub__(self: set[str], s: AbstractSet[Text | None]) -> set[_T]: ...
|
||||
@overload
|
||||
@@ -721,7 +721,7 @@ class set(MutableSet[_T], Generic[_T]):
|
||||
@overload
|
||||
def __isub__(self, s: AbstractSet[_T | None]) -> set[_T]: ...
|
||||
def __xor__(self, s: AbstractSet[_S]) -> set[_T | _S]: ...
|
||||
def __ixor__(self: Self, s: AbstractSet[_T]) -> Self: ...
|
||||
def __ixor__(self: Self, s: AbstractSet[_T]) -> Self: ... # type: ignore[override,misc]
|
||||
def __le__(self, s: AbstractSet[object]) -> bool: ...
|
||||
def __lt__(self, s: AbstractSet[object]) -> bool: ...
|
||||
def __ge__(self, s: AbstractSet[object]) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user