-
-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
ast.increment_lineno does not increment line numbers in the Module.type_ignores list #99341
Labels
type-bug
An unexpected behavior, bug, or error
Comments
isidentical
added a commit
to isidentical/cpython
that referenced
this issue
Nov 12, 2022
isidentical
added a commit
to isidentical/cpython
that referenced
this issue
Nov 12, 2022
miss-islington
pushed a commit
that referenced
this issue
Nov 22, 2022
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Nov 22, 2022
pythonGH-99422) (cherry picked from commit 1acdfec) Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Nov 22, 2022
pythonGH-99422) (cherry picked from commit 1acdfec) Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
miss-islington
added a commit
that referenced
this issue
Nov 22, 2022
miss-islington
added a commit
that referenced
this issue
Nov 22, 2022
Thanks for reporting, looks like this has been fixed and backported |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
As indicated in the title,
ast.increment_lineno()
does not seem to increment thelineno
attributes in theModule
's list ofTypeIgnore
objects, with the result that the type ignore list is disconnected from the location attributes in the rest of the AST.Example:
Your environment
Tested using Python 3.11 on an Ubuntu Linux system.
The text was updated successfully, but these errors were encountered: