Skip to content

Commit 12a8975

Browse files
Fix mypy
1 parent b12408c commit 12a8975

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

python/egglog/exp/array_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ def __eq__(self, other: DType) -> Boolean: # type: ignore[override]
729729
_DTYPES = [float64, float32, int32, int64, DType.object]
730730

731731
converter(type, DType, lambda x: convert(np.dtype(x), DType))
732-
converter(np.dtype, DType, lambda x: getattr(DType, x.name)) # type:ignore[call-overload]
732+
converter(np.dtype, DType, lambda x: getattr(DType, x.name))
733733

734734

735735
@array_api_ruleset.register

python/tests/test_high_level.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1480,7 +1480,7 @@ def __init__(self) -> None: ...
14801480

14811481
def m(self) -> i64: ...
14821482
def __eq__(self, other: A) -> A: ... # type: ignore[override]
1483-
def __add__(self, other: A) -> A: ... # type: ignore[override]
1483+
def __add__(self, other: A) -> A: ...
14841484

14851485
def __str__(self) -> str:
14861486
"""Hi"""

0 commit comments

Comments
 (0)