blob: 8feb4e293efc5a66570660ea19b4eae439b5d803 (
plain)
1
2
3
4
5
6
7
8
|
"""Test that `if` in formatted string literal won't break Pylint."""
# pylint: disable=missing-docstring, pointless-statement, using-constant-test
f'{"+" if True else "-"}'
if True:
pass
elif True:
pass
|