Skip to content

Commit e1dcc39

Browse files
committed
🐓 disable mypy workaround for __add__: (integer, integer)
1 parent acf1dad commit e1dcc39

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ā€Žsrc/numpy-stubs/@test/generated/scalar_ops_arithmetic.pyi

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ā€Žtool/testgen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,7 @@ def _assert_stmt(self, op: str, lhs: str, rhs: str, /) -> str | None:
10271027
and lhs == rhs
10281028
and (abstract_arg := self.ABSTRACT_TYPES.get(self.names[lhs]))
10291029
):
1030-
if abstract_arg == "integer" and " / " not in op:
1030+
if abstract_arg == "integer" and " + " not in op and " / " not in op:
10311031
mypy_ignore = "assert-type, operator"
10321032
elif abstract_arg == "inexact":
10331033
mypy_ignore = "operator"

0 commit comments

Comments
Ā (0)