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

PEP 702: Runtime warnings #112

Merged
merged 2 commits into from Feb 7, 2023
Merged

Conversation

JelleZijlstra
Copy link
Member

@JelleZijlstra JelleZijlstra commented Feb 5, 2023

Copy link
Collaborator

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great!

I was a little surprised by the choice of category=None as a way to spell no warning, since with warnings.warn, category=None is UserWarning. But I think it's fine, the behaviour will be clearly visible + the documentation will make clear that category=None will disable the warning.

@hauntsaninja
Copy link
Collaborator

If you wanted, could add a test for a method as well

@JelleZijlstra JelleZijlstra merged commit e81cb82 into python:main Feb 7, 2023
@JelleZijlstra JelleZijlstra deleted the pep702 branch February 7, 2023 04:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants