Skip to content
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

Fix line range using Python 3.8 end_lineno #821

Merged
merged 1 commit into from
Mar 6, 2022
Merged

Fix line range using Python 3.8 end_lineno #821

merged 1 commit into from
Mar 6, 2022

Commits on Feb 26, 2022

  1. Fix line range using Python 3.8 end_lineno

    Python 3.8 and above have new ast node attributes to identify the
    end line number and end column offset [1].
    
    Python 3.8 also fixes line numbers for multiline strings [2].
    
    This fixes the issue mentioned in #820, but only for Python 3.8+.
    
    [1] https://docs.python.org/3.8/library/ast.html#ast.AST.end_lineno
    [2] https://bugs.python.org/issue31241
    
    Signed-off-by: Eric Brown <[email protected]>
    ericwb committed Feb 26, 2022
    Configuration menu
    Copy the full SHA
    27de75c View commit details
    Browse the repository at this point in the history