Skip to content

Commit 3704071

Browse files
authored
Add example for missing-format-argument-key message documentation (#6115)
1 parent 2929833 commit 3704071

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
print("My name is {first} {last}".format(first="John")) # [missing-format-argument-key]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
print("My name is {first} {last}".format(first="John", last="Wick"))
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
`PEP 3101 <https://peps.python.org/pep-3101/>`_
2+
`Custom String Formmating <https://docs.python.org/3/library/string.html#custom-string-formatting>`_

0 commit comments

Comments
 (0)