Skip to content

Commit c50834f

Browse files
DudeNr33sprytnyk
andauthored
Add examples for bad-string-format-type (#6164)
Co-authored-by: Vladyslav Krylasov <[email protected]>
1 parent 0880d95 commit c50834f

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("%d" % "1") # [bad-string-format-type]
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/6163>`_ for more information.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
print("%d" % 1)
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)