Skip to content

Commit e57af58

Browse files
committed
Fix <=, != and >= type hints.
1 parent 3932e60 commit e57af58

File tree

2 files changed

+270
-270
lines changed

2 files changed

+270
-270
lines changed

codegen/templates/_emath.pyi

+9-9
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,11 @@ class {{ type }}:
8383
def __len__(self) -> int: ...
8484
def __getitem__(self, key: int) -> {{ component_type }}: ...
8585
def __eq__(self, other: Any) -> _bool: ...
86-
def __neq__(self, other: Any) -> _bool: ...
86+
def __ne__(self, other: Any) -> _bool: ...
8787
def __lt__(self, other: Any) -> _bool: ...
88-
def __lte__(self, other: Any) -> _bool: ...
88+
def __le__(self, other: Any) -> _bool: ...
8989
def __gt__(self, other: Any) -> _bool: ...
90-
def __gte__(self, other: Any) -> _bool: ...
90+
def __ge__(self, other: Any) -> _bool: ...
9191

9292
@overload
9393
def __add__(self, other: {{ type }}) -> {{ type }}: ...
@@ -224,7 +224,7 @@ class {{ type }}Array:
224224
@overload
225225
def __getitem__(self, index: slice) -> {{ type }}Array: ...
226226
def __eq__(self, other: Any) -> _bool: ...
227-
def __neq__(self, other: Any) -> _bool: ...
227+
def __ne__(self, other: Any) -> _bool: ...
228228
def __bool__(self) -> _bool: ...
229229

230230
@property
@@ -287,7 +287,7 @@ class {{ type }}:
287287
def __len__(self) -> int: ...
288288
def __getitem__(self) -> {{ column_type }}: ...
289289
def __eq__(self, other: Any) -> _bool: ...
290-
def __neq__(self, other: Any) -> _bool: ...
290+
def __ne__(self, other: Any) -> _bool: ...
291291

292292
@overload
293293
def __add__(self, other: {{ type }}) -> {{ type }}: ...
@@ -401,7 +401,7 @@ class {{ type }}Array:
401401
@overload
402402
def __getitem__(self, index: slice) -> {{ type }}Array: ...
403403
def __eq__(self, other: Any) -> _bool: ...
404-
def __neq__(self, other: Any) -> _bool: ...
404+
def __ne__(self, other: Any) -> _bool: ...
405405
def __bool__(self) -> _bool: ...
406406

407407
@property
@@ -447,7 +447,7 @@ class {{ type }}:
447447
def __len__(self) -> int: ...
448448
def __getitem__(self) -> float: ...
449449
def __eq__(self, other: Any) -> _bool: ...
450-
def __neq__(self, other: Any) -> _bool: ...
450+
def __ne__(self, other: Any) -> _bool: ...
451451

452452
def __add__(self, other: {{ type }}) -> {{ type }}: ...
453453
def __radd__(self, other: {{ type }}) -> {{ type }}: ...
@@ -534,7 +534,7 @@ class {{ type }}Array:
534534
@overload
535535
def __getitem__(self, index: slice) -> {{ type }}Array: ...
536536
def __eq__(self, other: Any) -> _bool: ...
537-
def __neq__(self, other: Any) -> _bool: ...
537+
def __ne__(self, other: Any) -> _bool: ...
538538
def __bool__(self) -> _bool: ...
539539

540540
@property
@@ -584,7 +584,7 @@ class {{ type }}Array:
584584
@overload
585585
def __getitem__(self, index: slice) -> {{ type }}Array: ...
586586
def __eq__(self, other: Any) -> _bool: ...
587-
def __neq__(self, other: Any) -> _bool: ...
587+
def __ne__(self, other: Any) -> _bool: ...
588588
def __bool__(self) -> _bool: ...
589589

590590
@property

0 commit comments

Comments
 (0)