Skip to content

BUG: dtype repr of subclasses of np.void throw an exception #12206

Closed

Description

@eric-wieser

This one is on me, I think, in #10602. I wasn't aware this was legal:

>>> np.__version__
'1.13.3'
>>> class Custom(np.void): pass
>>> np.dtype(Custom)
dtype('V')
>>> np.__version__
'1.16.0.dev0+7af8e10'
>>> class Custom(np.void): pass
>>> np.dtype(Custom)
RuntimeError: Internal error: NumPy dtype unrecognized type number

Not sure if this affects 1.15.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions