From 71e7620711d6ff8cb838bdffb5e91cdd25497dba Mon Sep 17 00:00:00 2001 From: Geoffrey Gunter <12984092+gmgunter@users.noreply.github.com> Date: Mon, 14 Mar 2022 11:43:44 -0700 Subject: ENH: Add 'ulong' to sctypeDict (#21151) * ENH: Add 'ulong' to sctypeDict Closes #21063 * TST: Add a test for np.dtype("ulong") * REV: Don't add new attribute np.ulong --- numpy/typing/_char_codes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/typing') diff --git a/numpy/typing/_char_codes.py b/numpy/typing/_char_codes.py index 139471084..f840d17bb 100644 --- a/numpy/typing/_char_codes.py +++ b/numpy/typing/_char_codes.py @@ -30,7 +30,7 @@ _UByteCodes = Literal["ubyte", "B", "=B", "B"] _UShortCodes = Literal["ushort", "H", "=H", "H"] _UIntCCodes = Literal["uintc", "I", "=I", "I"] _UIntPCodes = Literal["uintp", "uint0", "P", "=P", "P"] -_UIntCodes = Literal["uint", "L", "=L", "L"] +_UIntCodes = Literal["ulong", "uint", "L", "=L", "L"] _ULongLongCodes = Literal["ulonglong", "Q", "=Q", "Q"] _HalfCodes = Literal["half", "e", "=e", "e"] -- cgit v1.2.1