Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

protected_access_access_different_scopes.py 235B

12345678910111213
  1. # pylint: disable=missing-docstring, too-few-public-methods
  2. class MyClass:
  3. async def method(self):
  4. pass
  5. def function():
  6. assert self.attr # [undefined-variable]
  7. def func():
  8. self.attr += 2 # [undefined-variable]