Skip to content

Commit dca3a61

Browse files
authored
Examples for bad-format-character (#6086)
* Co-authored-by: Vladyslav Krylasov <vladyslav.krylasov@gmail.com>
1 parent f206847 commit dca3a61

4 files changed

Lines changed: 6 additions & 0 deletions

File tree

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)