File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 1
1
import warnings
2
- from typing import Optional
3
2
4
3
5
- def _raise_warning (attr : str , submodule : Optional [ str ] = None ) -> None :
4
+ def _raise_warning (attr : str , submodule : str | None = None ) -> None :
6
5
new_module = "numpy._core"
7
6
old_module = "numpy.core"
8
7
if submodule is not None :
Original file line number Diff line number Diff line change 30
30
31
31
# needed in this module for compatibility
32
32
from numpy .lib ._histograms_impl import histogram , histogramdd # noqa: F401
33
- from typing import Optional
34
33
35
34
36
35
array_function_dispatch = functools .partial (
@@ -4666,7 +4665,7 @@ def _quantile_ureduce_func(
4666
4665
a : np .array ,
4667
4666
q : np .array ,
4668
4667
weights : np .array ,
4669
- axis : Optional [ int ] = None ,
4668
+ axis : int | None = None ,
4670
4669
out = None ,
4671
4670
overwrite_input : bool = False ,
4672
4671
method = "linear" ,
Original file line number Diff line number Diff line change 27
27
from numpy .lib import _function_base_impl as fnb
28
28
from numpy .lib ._function_base_impl import _weights_are_valid
29
29
from numpy ._core import overrides
30
- from typing import Optional
31
30
32
31
33
32
array_function_dispatch = functools .partial (
@@ -1663,7 +1662,7 @@ def _nanquantile_ureduce_func(
1663
1662
a : np .array ,
1664
1663
q : np .array ,
1665
1664
weights : np .array ,
1666
- axis : Optional [ int ] = None ,
1665
+ axis : int | None = None ,
1667
1666
out = None ,
1668
1667
overwrite_input : bool = False ,
1669
1668
method = "linear" ,
You can’t perform that action at this time.
0 commit comments