Skip to content

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

@github-actions
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