8000 DOC: docs for issubdtype doesn't explain why `complex64` is not a subdtype of `complex` or `complex_` · Issue #20259 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content
DOC: docs for issubdtype doesn't explain why complex64 is not a subdtype of complex or complex_ #20259
Open
@david-cortes

Description

@david-cortes

Describe the issue:

Calling issubdtype on a complex64 does not produce the correct output.

Reproduce the code example:

import numpy as np
np.issubdtype(np.array([], dtype="F").dtype, complex)
np.issubdtype(np.array([], dtype="F").dtype, np.complex_)
False
False

Error message:

No response

NumPy/Python version information:

1.21 and current master (1046087)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0