Files
openide/python/testData/intentions/PyInvertIfConditionIntentionTest/commentsMultilineNoElseBoth_after.py
Aleksei Kniazev d18717b0ec PY-15046: fixed tests location
GitOrigin-RevId: 89137463dee2d6a3862b80c98e5a173639c1defe
2020-10-19 15:47:28 +00:00

13 lines
198 B
Python

def func():
value = "not-none"
if value is not None:
pass
# Is none
# If it's none
else:
print("None")
# Is not none
# If it's not none
print(value)