Fix dunder-method positional-only parameter discrepancies in third-party stubs (#14529)

This commit is contained in:
Brian Schubert
2025-08-08 12:12:44 +02:00
committed by GitHub
parent 2e3203fdff
commit 11907e2825
11 changed files with 113 additions and 99 deletions
+2 -2
View File
@@ -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: ...
+6 -6
View File
@@ -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: