Skip to content

Commit

Permalink
remove type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
aquamatthias committed Nov 10, 2023
1 parent b41b4d3 commit 5c0f811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resotolib/resotolib/core/model_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def export_data_class(clazz: type) -> None:
]
root = any(sup == aggregate_root for sup in clazz.mro()) if aggregate_root else True
kind = model_name(clazz)
metadata: Optional[Json] = {}
metadata: Json = {}
if (m := getattr(clazz, "metadata", None)) and isinstance(m, dict):
metadata = m
if (s := getattr(clazz, "kind_display", None)) and isinstance(s, str):
Expand Down

0 comments on commit 5c0f811

Please sign in to comment.