Skip to content

Commit

Permalink
Remove some mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
FBumann committed Feb 19, 2025
1 parent 35c9a03 commit ed1b5e5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/test_compatible_arithmetrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def test_arithmetric_operations_variable(m: Model) -> None:
assert x.__mul__(object()) is NotImplemented # type: ignore
assert x.__truediv__(object()) is NotImplemented # type: ignore
assert x.__pow__(object()) is NotImplemented # type: ignore
assert x.__pow__(3) is NotImplemented # type: ignore
assert x.__pow__(3) is NotImplemented


def test_arithmetric_operations_expr(m: Model) -> None:
Expand All @@ -117,10 +117,10 @@ def test_arithmetric_operations_expr(m: Model) -> None:
assert_linequal(expr - data, expr - other_datatype)
assert_linequal(expr * data, expr * other_datatype)
assert_linequal(expr / data, expr / other_datatype)
assert expr.__add__(object()) is NotImplemented # type: ignore
assert expr.__sub__(object()) is NotImplemented # type: ignore
assert expr.__mul__(object()) is NotImplemented # type: ignore
assert expr.__truediv__(object()) is NotImplemented # type: ignore
assert expr.__add__(object()) is NotImplemented
assert expr.__sub__(object()) is NotImplemented
assert expr.__mul__(object()) is NotImplemented
assert expr.__truediv__(object()) is NotImplemented


def test_arithmetric_operations_con(m: Model) -> None:
Expand Down

0 comments on commit ed1b5e5

Please sign in to comment.