Skip to content

Commit f777ddc

Browse files
authored
Merge pull request numpy#27290 from DimitriPapadopoulos/UP
MAINT: Keep applying ruff/pyupgrade rules (UP)
2 parents eb6ac83 + aca3fdc commit f777ddc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

numpy/_core/numerictypes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106

107107
# we don't export these for import *, but we do want them accessible
108108
# as numerictypes.bool, etc.
109-
from builtins import bool, int, float, complex, object, str, bytes
109+
from builtins import bool, int, float, complex, object, str, bytes # noqa: UP029
110110

111111

112112
# We use this later

numpy/lib/_array_utils_impl.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Any, Iterable, Tuple
1+
from typing import Any, Iterable
22

33
from numpy import generic
44
from numpy.typing import NDArray
@@ -16,7 +16,7 @@ def normalize_axis_tuple(
1616
ndim: int = ...,
1717
argname: None | str = ...,
1818
allow_duplicate: None | bool = ...,
19-
) -> Tuple[int, int]: ...
19+
) -> tuple[int, int]: ...
2020

2121
def normalize_axis_index(
2222
axis: int = ...,

0 commit comments

Comments
 (0)