Skip to content

Commit 3e92b4b

Browse files
committed
🐓 special-case a mypy special-case
1 parent e01030a commit 3e92b4b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

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

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

ā€Žtool/testgen.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1446,7 +1446,8 @@ def _gen_testcases_binop_py_0d(
14461446
testcase = None
14471447
elif (
14481448
(self.opname == "sub" and label_np == "b1" and name_py[0] == "b")
1449-
or (label_np == "c16" and name_py[0] in "bif")
1449+
or (self.opname != "divmod" and label_np == "c16" and name_py[0] == "b")
1450+
or (label_np == "c16" and name_py[0] in "if")
14501451
): # fmt: skip
14511452
testcase = " ".join((
14521453
expr,

0 commit comments

Comments
Ā (0)