You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue aims to improve the readability and performance of the codebase by replacing .format() method calls with f-strings.
Python 3.6 introduced f-strings (formatted string literals), which provide a more concise and readable way to format strings compared to the .format() method. F-strings are also generally faster.
Identify all instances of .format() in the codebase and refactor them to use f-strings.
Notably, the LineWriter class in write.py uses .format() as the base of its template.
As the oldest Python version supported is 3.8, there is no need to retain .format().
The text was updated successfully, but these errors were encountered:
This issue aims to improve the readability and performance of the codebase by replacing
.format()
method calls with f-strings.Python 3.6 introduced f-strings (formatted string literals), which provide a more concise and readable way to format strings compared to the
.format()
method. F-strings are also generally faster.Identify all instances of
.format()
in the codebase and refactor them to use f-strings.Notably, the
LineWriter
class inwrite.py
uses.format()
as the base of its template.As the oldest Python version supported is 3.8, there is no need to retain
.format()
.The text was updated successfully, but these errors were encountered: