We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1afbf9b commit a8b18c0Copy full SHA for a8b18c0
eventsourcingdb/handlers/read_event_types/event_type.py
@@ -27,16 +27,16 @@ def parse(unknown_object: dict) -> "EventType":
27
)
28
29
schema = unknown_object.get('schema')
30
- if schema is not None and not isinstance(schema, (str, dict)):
+ if schema is not None and not isinstance(schema, (dict)):
31
raise ValidationError(
32
- f"Failed to parse schema '{schema}'. Schema must be either str or dict."
+ f"Failed to parse schema '{schema}'. Schema must be dict."
33
34
35
return EventType(
36
event_type=event_type,
37
is_phantom=is_phantom,
38
schema=schema,
39
- ) # type: ignore
+ )
40
41
def __hash__(self):
42
# Convert dictionary schema to a hashable form (tuple of items)
0 commit comments