Skip to content

Add np.ComplexWarning, etc., to NPY201 #12034

@njzjz

Description

@njzjz

Warnings and exceptions present in numpy.exceptions (e.g, ~numpy.exceptions.ComplexWarning, ~numpy.exceptions.VisibleDeprecationWarning) are no longer exposed in the main namespace.

  • np.ComplexWarning
  • np.VisibleDeprecationWarning
  • np.RankWarning
  • np.AxisError
  • np.DTypePromotionError
  • np.TooHardError

See: numpy/numpy#25966

Metadata

Metadata

Assignees

No one assigned

    Labels

    ruleImplementing or modifying a lint rule

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions