-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Cleanup after we drop support for Python 3.6 #4683
Comments
With the removal, we could also start using features that have been added in
https://www.python.org/downloads/release/python-370/ |
Just for reference: #4310 (Issue discussing when the removal of 3.6 should happen) |
Thank for the suggestion I added postponed evaluation to the list. Regarding dataclasses, could you explain the advantages compared to keeping NamedTuple for example ? |
Dataclasses are essentially just classes. So compared to Good examples where to use it can be found in the PR for the Similarity checker. |
I added dataclasses to the list :) I think it should be done in good intelligence though (ie: not everywhere for refactor's sake) |
Yeah, I completely agree. The initial list was more meant to show which new features we can take most advantage of with |
@cdce8p Is your typing upgrade tool ready to use for |
I just released a new version - repo: https://github.com/cdce8p/python-typing-update
rev: v0.4.0
hooks:
- id: python-typing-update
stages: [manual]
additional_dependencies:
- "black==22.3.0"
args:
- --py37-plus
- --force
- --keep-updates
- --black
files: ^(pylint)/.+\.py$ # might need to be changed
|
I'll take a look at this after |
I'm for using the pre-commit hook, it's easy to reintroduce |
I'll add it to the CI action that runs |
The tool wasn't designed to be fast 😄
The pylint typing extension is much better for that. -> |
When we do drop support because 3.6 has reached its end of life, we'll need to do some cleanup:
PY36_PLUS
conditionals__future__
import annotations) -> Bump py-version and add python-typing-update to CI #6326py-version
inpylintrc
-> Bump py-version and add python-typing-update to CI #63263.7.2+
#5921 and remove dead code > Removeassign-to-new-keyword
#6421The text was updated successfully, but these errors were encountered: