Muscat.Helpers.Decorators module

CheckIntegrity(GUI: bool = False)[source]
IsFrozen(self)[source]
UnFrozen(self)[source]
always_froze_it(cls)[source]
froze_it(cls)[source]

Decorator to make the class immutable (no more attributes can be added after initialization)

For the moment if a class is frozen no heritage is possible. The user must unfrozen the class before adding new attributes.

self.UnFrozen()

the module level attribute useFroze_itDecorator is use to determine if this decorator must be applied.