Skip to content

CLN: f-string formatting #31868

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

Merged
merged 3 commits into from
Feb 11, 2020

Conversation

monicaw218
Copy link
Contributor

Ref to #29547

  • passes black pandas
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff

Replacing strings interpolated with .format() with strings interpolated with f-strings

@pep8speaks
Copy link

pep8speaks commented Feb 11, 2020

Hello @monicaw218! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2020-02-11 04:36:39 UTC

Copy link
Member

@WillAyd WillAyd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very minor comment otherwise lgtm

type(index).__name__.rstrip("Index")
)
msg = f"Cannot cast {type(index).__name__.rstrip('Index')}.*? to "
# strip Index to convert PeriodIndex -> Period
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess should move this comment before 1350 so it reads sequentially

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I was wondering about this, too

@WillAyd WillAyd added the Code Style Code style, linting, code_checks label Feb 11, 2020
@monicaw218 monicaw218 requested a review from WillAyd February 11, 2020 04:37
Copy link
Member

@WillAyd WillAyd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm ping on green

@WillAyd WillAyd added this to the 1.1 milestone Feb 11, 2020
@WillAyd WillAyd merged commit 9d66896 into pandas-dev:master Feb 11, 2020
@WillAyd
Copy link
Member

WillAyd commented Feb 11, 2020

Great thanks @monicaw218

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Style Code style, linting, code_checks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants