class MyClass:
__module_attr: str = "module text value"
def __init__(self):
self.__instance_attr: str = "instance text value"
@classmethod
def cls_modify(cls):
cls.__module_attr = "class text value"
@classmethod
def cls_display(cls):
print(cls.__module_attr)
Suppose, I want to print the value of __instance_attr
inside cls_display()
.
How can I do that?