helpers.pysdc_helper module¶
- class FrozenClass[source]¶
Bases:
objectHelper class to freeze a class, i.e. to avoid adding more attributes
- __isfrozen¶
Flag to freeze a class
- classmethod add_attr(key, raise_error_if_exists=False)[source]¶
Add a key to the allowed attributes of this class.
- Parameters:
key (str) – The key to add
raise_error_if_exists (bool) – Raise an error if the attribute already exists in the class
- attrs = []¶