File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
import warnings
2
+ from typing import Optional
2
3
3
4
4
- def _raise_warning (attr : str , submodule : str = None ) -> None :
5
+ def _raise_warning (attr : str , submodule : Optional [ str ] = None ) -> None :
5
6
new_module = "numpy._core"
6
7
old_module = "numpy.core"
7
8
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
33
34
34
35
35
36
array_function_dispatch = functools .partial (
@@ -4665,7 +4666,7 @@ def _quantile_ureduce_func(
4665
4666
a : np .array ,
4666
4667
q : np .array ,
4667
4668
weights : np .array ,
4668
- axis : int = None ,
4669
+ axis : Optional [ int ] = None ,
4669
4670
out = None ,
4670
4671
overwrite_input : bool = False ,
4671
4672
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
30
31
31
32
32
33
array_function_dispatch = functools .partial (
@@ -1662,7 +1663,7 @@ def _nanquantile_ureduce_func(
1662
1663
a : np .array ,
1663
1664
q : np .array ,
1664
1665
weights : np .array ,
1665
- axis : int = None ,
1666
+ axis : Optional [ int ] = None ,
1666
1667
out = None ,
1667
1668
overwrite_input : bool = False ,
1668
1669
method = "linear" ,
You can’t perform that action at this time.
0 commit comments