8000 BUG: dtype repr of subclasses of np.void throw an exception · Issue #12206 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content
BUG: dtype repr of subclasses of np.void throw an exception #12206
Closed
@eric-wieser

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0