FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

PEP 702: Runtime warnings by JelleZijlstra · Pull Request #112 · python/typing_extensions · GitHub

PEP 702: Runtime warnings - #112

Merged
JelleZijlstra merged 2 commits into
python:mainfrom
JelleZijlstra:pep702
Feb 7, 2023
Merged

JelleZijlstra merged 2 commits into
python:mainfrom
JelleZijlstra:pep702

Conversation

JelleZijlstra commented Feb 5, 2023 •
edited
Loading

Copy link
Copy Markdown
Member

hauntsaninja left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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.

Copy link
Copy Markdown
Collaborator

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

JelleZijlstra merged commit e81cb82 into python:main Feb 7, 2023
JelleZijlstra deleted the pep702 branch February 7, 2023 04:36
JelleZijlstra restored the pep702 branch September 10, 2024 23:39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

2 participants


Back | FazBrowse Home | New Git URL