Skip to content

Commit

Permalink
Merge pull request #667 from PowerGridModel/feature/metaclass_to_comp…
Browse files Browse the repository at this point in the history
…onent_type

Feature/Added missing metaclass
  • Loading branch information
mgovers authored Jul 9, 2024
2 parents b1903af + 3a713f9 commit 6196536
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class DatasetType(str, Enum, metaclass=_MetaEnum):
{%- endfor %}


class ComponentType(str, Enum):
class ComponentType(str, Enum, metaclass=_MetaEnum):
"""
A ComponentType is the type of a grid component.

Expand Down
2 changes: 1 addition & 1 deletion src/power_grid_model/core/dataset_definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class DatasetType(str, Enum, metaclass=_MetaEnum):
sc_output = "sc_output"


class ComponentType(str, Enum):
class ComponentType(str, Enum, metaclass=_MetaEnum):
"""
A ComponentType is the type of a grid component.
Expand Down

0 comments on commit 6196536

Please sign in to comment.