Closed FelixTheC closed 3 years ago
The current workaround is to decorate the TypedDict class with match_class_typing
And to do the following.
@match_class_typing
class UserSelectedComponent(TypedDict):
id: uuid.UUID
min_concentration: float
max_concentration: float
@match_typing
def validate_selected_component_entry(value: dict):
UserSelectedComponent(value)
this will give the expected output.
Bugfix was merged into main and will be available in the next release. v2.1.7
Describe the bug
calling now the function
validate_selected_component_entry
will lead to