-
-
Notifications
You must be signed in to change notification settings - Fork 403
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
plugin: type-hint priority
argument as Literal[]
#2555
Conversation
This will flag any use of unrecognized values for the callable priority. It makes a good intermediate step between the current free-form `str` accepted and probably turning it into an `Enum` later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want to file an issue about making an Enum
now (or if we already have one, I didn't check), it would be helpful to add in a # TODO
above the change, but otherwise LGTM
@SnoopJ you can look at the revised docstring if/when you like. I'll go try to finish that |
c2891ee
to
6c14f50
Compare
OK, amended. You can do that final review you self-requested at your leisure, @Exirel 😃 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh well. I guess this is a fight I can't win. I don't care anymore. Go with it.
6c14f50
to
1196b19
Compare
If this is about the quotes you added a line note to, that was an error in my rebase. Should be fixed. 😅 |
Description
This will flag any use of unrecognized values for the callable priority. It makes a good intermediate step between the current free-form
str
accepted and probably turning it into anEnum
later.Checklist
make qa
(runsmake lint
andmake test
)priority
decorators in core to an unlisted value,mypy
raises an error 👍