[IR,TE,TIR] Use f-strings for string formatting, NFC#14990
[IR,TE,TIR] Use f-strings for string formatting, NFC#14990kparzysz-quic merged 2 commits intoapache:mainfrom
Conversation
|
Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.
Generated by tvm-bot |
Hzfengsy
left a comment
There was a problem hiding this comment.
LGTM. Thanks for the work, but I'm curious about the reason behind these changes. Does it mean string formatting will be deprecated in the future by Python?
|
F-strings embed the expressions into the string itself, unlike Maybe a small bonus for moving away from I created the first PR not knowing how it will be received, but since the reception was positive, I decided to keep going. |
|
Forgot to mention---I am not aware of any intentions to deprecate |
Replace uses of % and .format() with f-strings. Reformat modified files.
3dbcab3 to
e915184
Compare
* [IR,TE,TIR] Use f-strings for string formatting, NFC Replace uses of % and .format() with f-strings. Reformat modified files. * Rearrange pylint directives for better formatting
Replace uses of % and .format() with f-strings.
Reformat modified files.