python-by-example-150-chall.../venv/lib/python3.6/site-packages/pylint/test/functional/control_pragmas.py
2019-08-04 15:26:35 +03:00

20 lines
584 B
Python

# pylint: disable=missing-docstring
def test_pragma():
"""Test that the control pragmas are not too eager to consume the entire line
We should stop either at:
- ; or #
- or at the end of line
"""
# noqa: E501 # pylint: disable=unused-variable #nosec
variable = 1
# noqa # pylint: disable=undefined-variable,no-member; don't trigger
other_variable = some_variable + variable.member
# noqa # pylint: disable=unbalanced-tuple-unpacking,no-member # no trigger
first, second = some_other_variable
return first + other_variable.method()