-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
use to lower-case list and dict, this time with tests #6161
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
Conversation
@@ -10,14 +10,14 @@ else: | |||
@overload | |||
def search_dates( | |||
text: str, | |||
languages: List[str] | Tuple[str] | Set[str] | None, | |||
languages: list[str] | Tuple[str] | Set[str] | None, |
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.
Tuple[str]
appears to be a typo. I'll fix it in a separate PR.
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.
Maybe this should just be Collection[str] or something
This comment has been minimized.
This comment has been minimized.
2 similar comments
This comment has been minimized.
This comment has been minimized.
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.
Thanks, feel free to merge!
Some potential nits:
- The UnionFinder name is now a little inaccurate
- We should be able to use built-in generics in type aliases etc, so could extend the logic to handle that as well
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
In #5888 I used a script to switch to lower-case
list
anddict
. This PR adds a CI check for that and also fixes a few occurrences whereList
andDict
have slipped through the review.