Skip to content

fix: remove redundant .format() #16288

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

Conversation

nautics889
Copy link
Contributor

@nautics889 nautics889 commented Oct 18, 2023

  • (fix): remove call to a .format() method for an f-string in the emit.py module.

It looks like there is a redundant .format() call for an f-string.
Originally this was added in 040f3ab revision at 562th line.
I doubt there is any need to use .format() when it's been formatted using the f-string simultaneously. (Although it's legal and isn't producing any exception or unexpected behaviour...)


I didn't create a separate issue for this since it seems like a minor fix and does not affect behavior.

* (fix): remove call to a `.format()` method for an f-string in the
  emit.py module.
@nautics889 nautics889 force-pushed the fix/miscellaneous-minor-fixes branch from 2665035 to 4ec451b Compare October 18, 2023 23:00
@nautics889
Copy link
Contributor Author

recheck

@nautics889 nautics889 marked this pull request as ready for review October 19, 2023 00:57
Copy link
Collaborator

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

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

Thanks!

@hauntsaninja hauntsaninja merged commit 5506cba into python:master Oct 20, 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.

2 participants