Skip to content

Commit 1ce463f

Browse files
committed
TYP: Optional numpy.number type parameters
1 parent 20d051a commit 1ce463f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

numpy/__init__.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3060,8 +3060,8 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
30603060
# See https://github.com/numpy/numpy-stubs/pull/80 for more details.
30613061

30623062
_ScalarType = TypeVar("_ScalarType", bound=generic)
3063-
_NBit = TypeVar("_NBit", bound=NBitBase)
3064-
_NBit1 = TypeVar("_NBit1", bound=NBitBase)
3063+
_NBit = TypeVar("_NBit", bound=NBitBase, default=Any)
3064+
_NBit1 = TypeVar("_NBit1", bound=NBitBase, default=Any)
30653065
_NBit2 = TypeVar("_NBit2", bound=NBitBase, default=_NBit1)
30663066
_NBit_fc = TypeVar("_NBit_fc", _NBitHalf, _NBitSingle, _NBitDouble, _NBitLongDouble)
30673067

0 commit comments

Comments
 (0)