Skip to content

Commit 01dbf5a

Browse files
committed
🚨 fix new ruff error
1 parent 1cb0cf1 commit 01dbf5a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎tool/promotion.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ def _types_co(chars: str, /) -> tuple[_ToScalarType, ...]:
3838

3939
def _promotes_to(sct: npt.DTypeLike) -> tuple[_ToScalarType, ...]:
4040
out: list[_ToScalarType] = []
41-
for _t in (bool, int, float, complex, str, bytes, *np.sctypeDict.values()):
41+
for t in (bool, int, float, complex, str, bytes, *np.sctypeDict.values()):
4242
try:
43-
dt = np.result_type(sct, _t)
43+
dt = np.result_type(sct, t)
4444
except (ValueError, TypeError):
4545
continue
4646
if np.dtype(dt) == sct:
47-
out.append(_t)
47+
out.append(t)
4848
return tuple(dict.fromkeys(out))
4949

5050

0 commit comments

Comments
 (0)