-
Notifications
You must be signed in to change notification settings - Fork 913
Future annotations #2452
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
Future annotations #2452
Conversation
…e 'MagneticSpaceGroup'
Note to future |
Hi @janosh, thanks for the PR -- can you point me to where in the PEP the I was reading elsewhere that the new preferred option for kwargs may be to omit the |
@mkhorton That's right! As I was discussing with @arosen93 over in #2451 (comment), |
@mkhorton Regarding your 1st question, I believe 604 is the PEP you're looking for.
|
Thanks, so just to summarize:
Happy to merge this regardless since it looks cleaner, I just want to make sure we have guidelines for future PRs. |
Yes, whether you allow implicit optionals is up to personal preference afaik. Seems more pythonic to me so I would leave it enabled.
We already do actually. This will all be handled automatically by pre-commit.ci in the future since we're using the The only thing left to decide really is whether that |
Convert annotations to future syntax available through import in Python 3.7 upwards. See PEP 563.