Mar-20-2022, 07:52 PM
You can do this
class Outer(object): a = 111 class Inner(object): @staticmethod def get_a(cls): return Outer.a # OK Inner.b = a