-
Notifications
You must be signed in to change notification settings - Fork 0
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
Refine the codebase #6
Comments
I've been doing this lately with |
I'm all for automating the process, as long as we can have human reviews on the changes (e.g. PRs or review-before-push or so) |
I don't see much to do here when it comes to Python 3.8 modernization precisely. |
An idea would be to make use of things that were introduced in Python 3.8 but weren't available in earlier versions, where it makes sense. For example, in 3.6 Type hinting also improved, so we could make use of that too I guess. What do you think? |
I'll start from type hints. |
Yeah, dataclasses was added to stdlib in 3.7. But I can see it between other stdlib imports here: python-kustomize/kustomize/generators.py Lines 6 to 8 in a0c5b3c
And I don't see a place where dataclasses is referred to as if it was a third-party package. |
Here's a few ideas to look for:
Other than this, I would be happy if we can make sure the package is mypy-strict. For some years I've been trying hard to keep type hints as strict as possible, because they're immensely helpful. |
Thanks for assistance. I've been doing such refactors from time to time (CERT-Polska/malduck#111, python-poetry/cleo#365), I'm sure we'll get as much as we can out of it. :) |
I'm very happy you don't oppose to PEP 563. Opinions tend to be pretty controversial. |
No description provided.
The text was updated successfully, but these errors were encountered: