We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43ec89c commit 4b40cf5Copy full SHA for 4b40cf5
tool/testgen.py
@@ -1167,7 +1167,7 @@ def __init_dtypes(self) -> None:
1167
continue
1168
seen_dtypes.add(label)
1169
1170
- kind = dtype.kind
+ kind: str = dtype.kind
1171
if kind in "SU":
1172
kind = "w"
1173
if kind in unseen_abstract and label in unseen_abstract[kind]:
@@ -1209,10 +1209,12 @@ def _evaluate(
1209
lhs, rhs = rhs, lhs
1210
1211
try:
1212
- return self.opfunc(lhs, rhs).dtype
+ dtype: np.dtype = self.opfunc(lhs, rhs).dtype
1213
except TypeError:
1214
return None
1215
1216
+ return dtype
1217
+
1218
def _gen_testcases_np_nd(self, label1: str, /) -> Generator[str | None]:
1219
name1 = f"{label1}_nd"
1220
dtypes1 = self.dtypes[label1]
0 commit comments