Skip to content

Commit dab253e

Browse files
committed
TYP: Add missing typecodes in numpy._core.numerictypes.typecodes
1 parent 2093a6d commit dab253e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

numpy/_core/numerictypes.pyi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ _SCT = TypeVar("_SCT", bound=generic)
4545

4646
class _TypeCodes(TypedDict):
4747
Character: L['c']
48-
Integer: L['bhilqp']
49-
UnsignedInteger: L['BHILQP']
48+
Integer: L['bhilqnp']
49+
UnsignedInteger: L['BHILQNP']
5050
Float: L['efdg']
5151
Complex: L['FDG']
52-
AllInteger: L['bBhHiIlLqQpP']
52+
AllInteger: L['bBhHiIlLqQnNpP']
5353
AllFloat: L['efdgFDG']
5454
Datetime: L['Mm']
55-
All: L['?bhilqpBHILQPefdgFDGSUVOMm']
55+
All: L['?bhilqnpBHILQNPefdgFDGSUVOMm']
5656

5757
__all__: list[str]
5858

numpy/typing/tests/data/reveal/numerictypes.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ assert_type(np.bool_, type[np.bool])
5252

5353
assert_type(np.typecodes["Character"], Literal["c"])
5454
assert_type(np.typecodes["Complex"], Literal["FDG"])
55-
assert_type(np.typecodes["All"], Literal["?bhilqpBHILQPefdgFDGSUVOMm"])
55+
assert_type(np.typecodes["All"], Literal["?bhilqnpBHILQNPefdgFDGSUVOMm"])

0 commit comments

Comments
 (0)