-
- Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
False Positive 🦟A message is emitted but nothing is wrong with the codeA message is emitted but nothing is wrong with the codeNeeds PRThis issue is accepted, sufficiently specified and now needs an implementationThis issue is accepted, sufficiently specified and now needs an implementation
Description
Bug description
def f1(): pass def f2(): pass test = True f1() if test else f2()Configuration
No response
Command used
pylint test.pyPylint output
test.py:9: [W0106(expression-not-assigned), ] Expression "f1() if test else f2()" is assigned to nothingExpected behavior
no warning (according to documentation of pylint)
Pylint version
2.16.0.b1OS / Environment
windows
Metadata
Metadata
Assignees
Labels
False Positive 🦟A message is emitted but nothing is wrong with the codeA message is emitted but nothing is wrong with the codeNeeds PRThis issue is accepted, sufficiently specified and now needs an implementationThis issue is accepted, sufficiently specified and now needs an implementation