Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
njzjz opened this issue Jun 25, 2024 · 3 comments · Fixed by #12065
Closed

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

njzjz opened this issue Jun 25, 2024 · 3 comments · Fixed by #12065
Labels
rule Implementing or modifying a lint rule

Comments

@njzjz
Copy link

njzjz commented Jun 25, 2024

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

@charliermarsh
Copy link
Member

\cc @mtsokol

@charliermarsh charliermarsh added the rule Implementing or modifying a lint rule label Jun 26, 2024
@mtsokol
Copy link
Contributor

mtsokol commented Jun 27, 2024

It will be fixed in #12065.

@MichaReiser MichaReiser linked a pull request Jun 27, 2024 that will close this issue
@charliermarsh
Copy link
Member

Thanks @mtsokol!

charliermarsh pushed a commit that referenced this issue Jun 27, 2024
Hi!

This PR updates `NPY201` rule to address
#12034 and partially
numpy/numpy#26800.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rule Implementing or modifying a lint rule
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants