summaryrefslogtreecommitdiff
path: root/tests/functional/d/duplicate/duplicate_string_formatting_argument.py
blob: 572f20ecac17f03fb42f92b099e49e6f2d8d67a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# pylint: disable=missing-docstring, consider-using-f-string

NAME = 42
OTHER_NAME = 24
OTHER_OTHER_NAME = 2

# +1: [duplicate-string-formatting-argument,duplicate-string-formatting-argument]
CONST = "some value {} some other value {} {} {} {} {}".format(
    NAME,
    NAME,
    OTHER_NAME,
    OTHER_NAME,
    OTHER_NAME,
    OTHER_OTHER_NAME,
)