mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-02 06:00:24 +08:00
Fix dunder-method positional-only parameter discrepancies in third-party stubs (#14529)
This commit is contained in:
@@ -63,8 +63,8 @@ class BaseGeometry(Geometry):
|
||||
def __xor__(self, other: OptGeoArrayLikeSeq) -> GeoArray: ...
|
||||
@overload
|
||||
def __xor__(self, other: None) -> None: ...
|
||||
def __eq__(self, other: object) -> bool: ...
|
||||
def __ne__(self, other: object) -> bool: ...
|
||||
def __eq__(self, other: object, /) -> bool: ...
|
||||
def __ne__(self, other: object, /) -> bool: ...
|
||||
def __hash__(self) -> int: ...
|
||||
@property
|
||||
def coords(self) -> CoordinateSequence: ...
|
||||
|
||||
@@ -144,12 +144,12 @@ registry: list[type[Geometry]]
|
||||
|
||||
class Geometry:
|
||||
def __hash__(self) -> int: ...
|
||||
def __eq__(self, other: object) -> bool: ...
|
||||
def __ne__(self, other: object) -> bool: ...
|
||||
def __ge__(self, other: Never) -> bool: ...
|
||||
def __gt__(self, other: Never) -> bool: ...
|
||||
def __le__(self, other: Never) -> bool: ...
|
||||
def __lt__(self, other: Never) -> bool: ...
|
||||
def __eq__(self, other: object, /) -> bool: ...
|
||||
def __ne__(self, other: object, /) -> bool: ...
|
||||
def __ge__(self, other: Never, /) -> bool: ...
|
||||
def __gt__(self, other: Never, /) -> bool: ...
|
||||
def __le__(self, other: Never, /) -> bool: ...
|
||||
def __lt__(self, other: Never, /) -> bool: ...
|
||||
|
||||
@final
|
||||
class STRtree:
|
||||
|
||||
Reference in New Issue
Block a user