Skip to content

Commit a8b18c0

Browse files
committed
fix: event_type
1 parent 1afbf9b commit a8b18c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

eventsourcingdb/handlers/read_event_types/event_type.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ def parse(unknown_object: dict) -> "EventType":
2727
)
2828

2929
schema = unknown_object.get('schema')
30-
if schema is not None and not isinstance(schema, (str, dict)):
30+
if schema is not None and not isinstance(schema, (dict)):
3131
raise ValidationError(
32-
f"Failed to parse schema '{schema}'. Schema must be either str or dict."
32+
f"Failed to parse schema '{schema}'. Schema must be dict."
3333
)
3434

3535
return EventType(
3636
event_type=event_type,
3737
is_phantom=is_phantom,
3838
schema=schema,
39-
) # type: ignore
39+
)
4040

4141
def __hash__(self):
4242
# Convert dictionary schema to a hashable form (tuple of items)

0 commit comments

Comments
 (0)