Inheritance of Hydra-Struct classes
When at the moment using our typing class as type annotation within another dataclass, hydra throws an error if the actual instance is not derived from that typing class.
To reproduce
from mdml_tools.hydra_models.typing import Optimizer
@dataclass
class LitModule:
_target_: str = "my_model"
optimizer: Optimizer = MISSING
This fails with any of our optimizers, because hydra checks if our optimizers are actually a subclass of "Optimizer".
Solution
Make all our dataclasses inherit from their typing classes. This shouldn't break anything but makes those type-annotations possible.