Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Auto convert % and format to f-string #777

Closed
asukaminato0721 opened this issue Dec 26, 2020 · 2 comments
Closed

Auto convert % and format to f-string #777

asukaminato0721 opened this issue Dec 26, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@asukaminato0721
Copy link

asukaminato0721 commented Dec 26, 2020

There are three types of formatting a string. Is it possible to add a yellow bulb to suggest converting the last two to f-string automatically?

a = "str"
f"{a}"
"%s" % (a)
"{}".format(a)
@judej
Copy link
Contributor

judej commented Dec 28, 2020

Thanks for the suggestion @wuyudi, will add this to our enhancement list.

@judej judej added the enhancement New feature or request label Dec 28, 2020
@github-actions github-actions bot removed the triage label Dec 28, 2020
@judej
Copy link
Contributor

judej commented Apr 19, 2022

Moving this issue to discussion as an enhancement request for comments and upvotes.

@microsoft microsoft locked and limited conversation to collaborators Apr 19, 2022
@judej judej converted this issue into discussion #2639 Apr 19, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants