This repository has been archived on 2025-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
multipub/.pyenv/lib/python3.7/site-packages/pylint/test/functional/control_pragmas.py

20 lines
584 B
Python
Raw Normal View History

2019-02-09 02:45:25 -06:00
# 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()