diff options
Diffstat (limited to 'tests/functional/protected_access_access_different_scopes.py')
-rw-r--r-- | tests/functional/protected_access_access_different_scopes.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/functional/protected_access_access_different_scopes.py b/tests/functional/protected_access_access_different_scopes.py new file mode 100644 index 000000000..dc09aa52b --- /dev/null +++ b/tests/functional/protected_access_access_different_scopes.py @@ -0,0 +1,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] |