-
Notifications
You must be signed in to change notification settings - Fork 2.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
Update type annotations to use |
operator
#3323
Update type annotations to use |
operator
#3323
Conversation
This pull request fails because the I think we need to update these two files:
The Python releases can be found here.
|
497f342
to
3a02b4b
Compare
We cannot upgrade Python at this time, due to #3081. from __future__ import annotations |
While you are welcome to use CI for testing if you wish, you may find ./check on your local machine gives you a faster feedback cycle. I find it useful to put it into a git hook, so it happens automatically on push, and aborts the push if the check fails. |
2139ef3
to
4bd936b
Compare
I'm completely unfamiliar with the toolchain Anki uses and with Rust, but I'm slowly figuring things out. 🙂 Got the PR to pass! Thank you for your help! Such a git hook sounds very useful. (I already use |
I have this at the top of pre-push:
It's not perfect - it runs when I do things like try to push a tag deletion as well. But works well for the common case. |
Updated
Optional
andUnion
type annotations to the|
operator.