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

Use f-strings instead of .format() #469

Merged
merged 1 commit into from
Jan 23, 2023
Merged

Use f-strings instead of .format() #469

merged 1 commit into from
Jan 23, 2023

Conversation

Viicos
Copy link
Contributor

@Viicos Viicos commented Jan 23, 2023

Using pyupgrade with the following command:

pyupgrade --py37-plus  `find . -name "*.py"`
  • Converted .format to f-strings
  • Simplify is_async_available in utils.py

You might want to keep .format in some places, as it could be easier to read

note: pyupgrade is intentionally timid and will not create an f-string if it would make the expression longer or if the substitution parameters are sufficiently complicated (as this can decrease readability).

@Viicos Viicos requested a review from a team as a code owner January 23, 2023 14:51
Copy link
Contributor

@adamjmcgrath adamjmcgrath left a comment

Choose a reason for hiding this comment

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

Thanks @Viicos

@adamjmcgrath adamjmcgrath merged commit 9f8064d into auth0:master Jan 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants