-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Add types for zxcvbn #8089
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
Add types for zxcvbn #8089
Conversation
This comment has been minimized.
This comment has been minimized.
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.
Mostly looks good, but I'm not sure about the huge _Match
TypedDict
in matching.pyi
. It seems like we could probably have a smaller base TypedDict
, and return subtypes of that TypedDict
from specific functions where _Match
always has certain other keys.
Basically everything except the |
Theorically, this supports more types, but I don't think that's important here.
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
Ideally we'd be able to return |
This comment has been minimized.
This comment has been minimized.
What do you want to do here?
|
I honestly think, we could just merge it. pytype should just assume |
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.
A few small comments
This comment has been minimized.
This comment has been minimized.
1 similar comment
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
No description provided.