You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some PulseTemplates the automatic registration happens to early as it triggers serialization for some containers (PulseStorage).
The easy fix for classes that do not need their superclasses attributes in their __init__ is to put the superclass initialization at the end. Is there a better way?
Maybe some kind of __init__ decorator?
The text was updated successfully, but these errors were encountered:
…global registry after they are completely initialized.
Serializable now does not perform registration in __init__ but provides a method _register() which MUST be called by leaf-level subclasses. (This is probably also not a good solution in the long term as it effectively prevents further subclassing from those classes but it works for now).
Signed-off-by: Lukas Prediger <lukas.prediger@rwth-aachen.de>
For some PulseTemplates the automatic registration happens to early as it triggers serialization for some containers (
PulseStorage
).The easy fix for classes that do not need their superclasses attributes in their
__init__
is to put the superclass initialization at the end. Is there a better way?Maybe some kind of
__init__
decorator?The text was updated successfully, but these errors were encountered: