Skip to content

Commit 81bb644

Browse files
[doc] Add an example for 'missing-format-string-key' (#8379)
1 parent 6846a13 commit 81bb644

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# +1: [missing-format-string-key]
2+
fruit_prices = """
3+
Apple: %(apple_price)d ¤
4+
Orange: %(orange_price)d ¤
5+
""" % {
6+
"apple_price": 42
7+
}

doc/data/messages/m/missing-format-string-key/details.rst

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
# This is a placeholder for correct code for this message.
1+
fruit_prices = """
2+
Apple: %(apple_price)d ¤
3+
Orange: %(orange_price)d ¤
4+
""" % {
5+
"apple_price": 42,
6+
"orange_price": 87,
7+
}

0 commit comments

Comments
 (0)