Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
reference f-strings
  • Loading branch information
StoicLoofah committed Feb 1, 2022
commit f7ff804435b86f88e683f9e34ffdc5c587cc8820
6 changes: 1 addition & 5 deletions STYLE_GUIDE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,4 @@ All files should start with the following::

All imports should be absolute.


All string formatting should be done in the following style::

"my {0} formatted {1} string {2}".format("super", "python", "example")
"the {x} style of {y} is also {z}".format(x="dict", y="arguments", z="acceptable")
All string formatting should be done with f-strings. See https://docs.python.org/3/reference/lexical_analysis.html#f-strings