Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Remove Unnecessary F-strings#2

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

@pixeebot
Copy link

@pixeebotpixeebotbot commentedApr 9, 2024

This codemod converts any f-strings without interpolated variables into regular strings.
In these cases the use of f-string is not necessary; a simple string literal is sufficient.

While in some (extreme) cases we might expect a very modest performance
improvement, in general this is a fix that improves the overall cleanliness and
quality of your code.

- var = f"hello"+ var = "hello"  ...
More reading

Powered by:pixeebot (codemod ID:pixee:python/remove-unnecessary-f-str)

@pixeeaipixeeai merged commit2c2c99a intomasterApr 10, 2024
@pixeebotpixeebotbot deleted the pixeebot/drip-2024-04-09-pixee-python/remove-unnecessary-f-str branchApril 10, 2024 23:47
@pixeeai
Copy link

@pixeebot next

pixeebot[bot] reacted with thumbs up emoji

@pixeeaipixeeai restored the pixeebot/drip-2024-04-09-pixee-python/remove-unnecessary-f-str branchApril 10, 2024 23:47
@pixeebot
Copy link
Author

@pixeeai, I don't have any suggestions at this time, but I am always learning, and I will let you know if anything comes up!

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@pixeeai

[8]ページ先頭

©2009-2025 Movatter.jp