Skip to content
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

Merged
merged 3 commits into from
Apr 4, 2020

Conversation

ShaharNaveh
Copy link
Member

  • closes #xxxx
  • tests added / passed
  • passes black pandas
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff
  • whatsnew entry

@ShaharNaveh ShaharNaveh added the Typing type annotations, mypy/pyright type checking label Apr 3, 2020
@@ -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]]:
Copy link
Member

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?

Copy link
Member Author

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!

@simonjayhawkins simonjayhawkins added this to the 1.1 milestone Apr 3, 2020
Copy link
Member

@simonjayhawkins simonjayhawkins left a 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

@WillAyd WillAyd merged commit 265b842 into pandas-dev:master Apr 4, 2020
@WillAyd
Copy link
Member

WillAyd commented Apr 4, 2020

Thanks @MomIsBestFriend

@ShaharNaveh ShaharNaveh deleted the TYP-Scriptrst branch April 6, 2020 08:26
jbrockmendel pushed a commit to jbrockmendel/pandas that referenced this pull request Apr 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Typing type annotations, mypy/pyright type checking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants