Skip to content

Fixes for Python 3.9+ compatibility#21

Open
walton98 wants to merge 3 commits intopgjones:masterfrom
walton98:py310-fixes
Open

Fixes for Python 3.9+ compatibility#21
walton98 wants to merge 3 commits intopgjones:masterfrom
walton98:py310-fixes

Conversation

@walton98
Copy link
Copy Markdown

#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