Skip to content

Commit 21f87dc

Browse files
authored
Add example for too-many-format-args and too-few-format-args (#6114)
1 parent 3704071 commit 21f87dc

File tree

6 files changed

+6
-0
lines changed

6 files changed

+6
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
print("Today is {0}, so tomorrow will be {1}".format("Monday")) # [too-few-format-args]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
print("Today is {0}, so tomorrow will be {1}".format("Monday", "Tuesday"))
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
`String Formmating <https://docs.python.org/3/library/string.html#formatstrings>`_
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
print("Today is {0}, so tomorrow will be {1}".format("Monday", "Tuesday", "Wednesday")) # [too-many-format-args]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
print("Today is {0}, so tomorrow will be {1}".format("Monday", "Tuesday"))
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
`String Formmating <https://docs.python.org/3/library/string.html#formatstrings>`_

0 commit comments

Comments
 (0)