Skip to content

Commit dca3a61

Browse files
authored
Examples for bad-format-character (#6086)
* Co-authored-by: Vladyslav Krylasov <[email protected]>
1 parent f206847 commit dca3a61

File tree

4 files changed

+6
-0
lines changed

4 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("%s %z" % ("hello", "world")) # [bad-format-character]
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
This check is currently only active for "old-style" string formatting as seen in the examples.
2+
See `Issue #6085 <https://github.com/PyCQA/pylint/issues/6085>`_ for more information.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
print("%s %s" % ("hello", "world"))
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- `Format String Syntax <https://docs.python.org/3/library/string.html#formatstrings>`_
2+
- `PyFormat <https://pyformat.info/>`_

0 commit comments

Comments
 (0)