Skip to content

Commit

Permalink
Make Event.record optional since it is not included in serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
user committed May 21, 2024
1 parent 0f7db2f commit a9cebab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion avtdl/core/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class Event(Record):
"""text describing the nature of event, can be used to filter classes of events, such as errors"""
text: str
"""text describing specific even details"""
record: SerializeAsAny[Record] = Field(exclude=True)
record: SerializeAsAny[Optional[Record]] = Field(exclude=True, default=None)
"""record that was being processed when this event happened"""

def __str__(self):
Expand Down

0 comments on commit a9cebab

Please sign in to comment.