Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Update ast.alias _attributes for Python 3.9 #14103

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

Merged
merged 1 commit into from
May 20, 2025

Conversation

hunterhogan
Copy link
Contributor

Adjust the ast.alias class to correctly reflect the absence of lineno, col_offset, end_lineno, and end_col_offset attributes in Python 3.9, aligning it with the actual behavior observed in the interpreter.

Fixes #14102

Copy link
Contributor

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

Copy link
Member

@JelleZijlstra JelleZijlstra left a comment

Choose a reason for hiding this comment

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

Thanks for finding this!

@JelleZijlstra JelleZijlstra merged commit cb37f1d into python:main May 20, 2025
64 checks passed
@hunterhogan hunterhogan deleted the ast_alias_attributes branch May 20, 2025 05:18
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.

ast.alias._attributes in Python 3.9 and "stdlib/ast.pyi" don't match
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.