Skip to content

BUG: Deprecate unsupported dtype aliases #24892

Closed
@mroeschke

Description

@mroeschke

Describe the issue:

#24679 appears to have accidentially removed dtype aliases that used to work

Reproduce the code example:

In [1]: import numpy as np

In [2]: np.__version__
Out[2]: '1.24.4'

In [3]: np.dtype("unicode")
Out[3]: dtype('<U')

In [4]: np.dtype("a1")
Out[4]: dtype('S1')


>>> import numpy as np
>>> np.dtype("unicode")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: data type 'unicode' not understood
>>> np.dtype("a1")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: data type 'a1' not understood
>>> np.__version__
'2.0.0.dev0+git20231007.040ed2d'

Error message:

No response

Runtime information:

>>> np.__version__
'2.0.0.dev0+git20231007.040ed2d'

Context for the issue:

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions