-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
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
TYP: Fixed type annotaions in scripts/validate_rst_title_capitalization
#33268
Conversation
@@ -148,7 +148,7 @@ def correct_title_capitalization(title: str) -> str: | |||
return correct_title | |||
|
|||
|
|||
def find_titles(rst_file: str) -> Generator[Tuple[str, int], None, None]: | |||
def find_titles(rst_file: str) -> Iterator[Tuple[str, int]]: |
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.
Think we've been using Iterable in these cases - @simonjayhawkins ring a bell?
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.
Yes you are 100% correct!
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 @MomIsBestFriend lgtm pending green
Thanks @MomIsBestFriend |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff