summaryrefslogtreecommitdiff
path: root/tests/functional/p/protected_access_access_different_scopes.py
blob: dc09aa52b3512a8ea982ac27c04541df81938041 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# pylint: disable=missing-docstring, too-few-public-methods
class MyClass:

    async def method(self):
        pass


def function():
    assert self.attr # [undefined-variable]


def func():
    self.attr += 2 # [undefined-variable]