Skip to content

ast: mark ast.Num etc. as deprecated - #10994

Merged
srittau merged 6 commits into
python:mainfrom
JelleZijlstra:depr
Nov 8, 2023
Merged

srittau merged 6 commits into
python:mainfrom
JelleZijlstra:depr

Conversation

@JelleZijlstra

Copy link
Copy Markdown
Member

PEP 702 was just accepted. As the decorator should simply be ignored
by type checkers that do not support it yet, I don't see anything
blocking us from using it now.

This is the first simple-looking deprecation in
https://docs.python.org/3.12/whatsnew/3.12.html#deprecated
I'll see what CI has to say here before looking at others.

JelleZijlstra and others added 4 commits November 7, 2023 19:50
PEP 702 was just accepted. As the decorator should simply be ignored
by type checkers that do not support it yet, I don't see anything
blocking us from using it now.

This is the first simple-looking deprecation in
https://docs.python.org/3.12/whatsnew/3.12.html#deprecated
I'll see what CI has to say here before looking at others.
@github-actions

This comment has been minimized.

@AlexWaygood AlexWaygood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice, those are very useful error messages emitted by pyright!

Comment thread stdlib/ast.pyi Outdated
Comment thread stdlib/ast.pyi Outdated
Comment thread stdlib/ast.pyi Outdated
Comment thread stdlib/ast.pyi Outdated
Comment thread stdlib/ast.pyi Outdated
@github-actions

This comment has been minimized.

Co-authored-by: Alex Waygood <[email protected]>
@github-actions

github-actions Bot commented Nov 8, 2023

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

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.

3 participants