Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a4f96c1

Browse files
committed
MAINT: Fix styling and add nN to All typecodes
1 parent daf7255 commit a4f96c1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

numpy/core/numerictypes.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -496,15 +496,15 @@ def _scalar_type_key(typ):
496496

497497
del key
498498

499-
typecodes = {'Character':'c',
500-
'Integer':'bhilqnp',
501-
'UnsignedInteger':'BHILQNP',
502-
'Float':'efdg',
503-
'Complex':'FDG',
504-
'AllInteger':'bBhHiIlLqQnNpP',
505-
'AllFloat':'efdgFDG',
499+
typecodes = {'Character': 'c',
500+
'Integer': 'bhilqnp',
501+
'UnsignedInteger': 'BHILQNP',
502+
'Float': 'efdg',
503+
'Complex': 'FDG',
504+
'AllInteger': 'bBhHiIlLqQnNpP',
505+
'AllFloat': 'efdgFDG',
506506
'Datetime': 'Mm',
507-
'All':'?bhilqpBHILQPefdgFDGSUVOMm'}
507+
'All': '?bhilqnpBHILQNPefdgFDGSUVOMm'}
508508

509509
# backwards compatibility --- deprecated name
510510
# Formal deprecation: Numpy 1.20.0, 2020-10-19 (see numpy/__init__.py)

0 commit comments

Comments
 (0)