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

Fixes for Python 3.9+ compatibility #21

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

walton98
Copy link

#12 assumes that end_lineno will not be set for single-line strings. However, as of Python 3.9 (python/cpython@b7e9525) these fields are instead defaulted to None.

Also add testing for Python 3.9/3.10 and drop unmaintained flake8-strict package.

`ast.expr.end_lineno` may be `None` rather than not being
set, meaning the fallback introduced in pgjones#12 doesn't work.
shaneahmed added a commit to TissueImageAnalytics/tiatoolbox that referenced this pull request Sep 6, 2022
- Remove flake8-sql checks as this is not being maintained.
  - pgjones/flake8-sql#21

Co-authored-by: Shan Raza <13048456+shaneahmed@users.noreply.github.com>
Co-authored-by: John Pocock <John-P@users.noreply.github.com>
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.

2 participants