no_default_vals_in_repr
- glotaran.utils.attrs_helper.no_default_vals_in_repr(cls)[source]
Class decorator to omits attributes from repr that have their default value.
Needs to be on top of the
attr.define
decorator. Based on: https://stackoverflow.com/a/47663099/3990615- Parameters:
cls – Class decorated with
attr.define
.- Return type:
type[cls]