blob: df36f67952a7e203373005f6632734b686b07092 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
"""Test for the regression on (outer)-class traversal for private methods
MyClass does not have an outerclass which previously crashed the protected-access check
"""
# pylint: disable=too-few-public-methods
class MyClass:
"""Test class"""
@staticmethod
def _a_private_method():
"""Private method that references the class itself"""
return MySecondClass.MyClass._a_private_method() # [protected-access]
class MySecondClass:
"""Class that uses MyClass"""
MyClass = MyClass
|