Drop Python 3.7, 3.8, 3.9 support#497
Conversation
sobolevn
left a comment
There was a problem hiding this comment.
Please, take a look at other sys.version_info checks
| @@ -8,6 +8,7 @@ | |||
| if sys.version_info[:2] >= (3, 9): # noqa: C901 | |||
There was a problem hiding this comment.
You can remove that now, because there are no python versions that won't execute this branch.
|
you can use |
|
I pushed a fix for this problem to |
OK, thanks! I tried to fix it myself, but now I will rebase |
Repro steps: 1. Bump python version to 3.10+ (previous commit) 2. Re-build poetry.lock file as shown below: ``` $ rm poetry.lock $ poetry install ```
1. Dropped 3.7-3.9 2. Added 3.11-3.13
Previously in this test module the actual tests would be executed only for python 3.9 and earlier. Since we drop support for these versions, then these tests are not necessary anymore.
4c89d17 to
ba5babc
Compare
Avoid inheritance from object to fix WPS306 linting errors. ``` WPS306 Found explicit `object` base class: ... ```
Since mypy v0.980 this function has been removed from `mypy.types`. This this commit we re-implement the same version present in v0.970.
|
It turns out that there are multiple mypy check failures with the newest mypy version. @sobolevn please suggest the way forward. |
|
You can use older mypy for now, I will fix these issues later :) |
This reverts commit e6d74cd.
sobolevn
left a comment
There was a problem hiding this comment.
You can delete nitpick section and dependency from pyproject.toml

This PR drops support for Python 3.7, 3.8 and 3.9 versions.
Here we updated python version in
pyproject.tomland then updatedpoetry.lockfile as described below (please correct me if it is totally wrong way of doing things).Update to
poetry.lockfile:Checklist
CHANGELOG.mdRelated issues
Format is:
🙏 Please, if you or your company finds
dry-pythonvaluable, help us sustain the project by sponsoring it transparently on https://github.com/sponsors/dry-python. As a thank you, your profile/company logo will be added to our main README which receives hundreds of unique visitors per day.