Skip to content

Commit

Permalink
Fixed None type
Browse files Browse the repository at this point in the history
Signed-off-by: Toomore Chiang <[email protected]>
  • Loading branch information
toomore committed Aug 1, 2024
1 parent 831bd9a commit f6d0681
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toldwords/pretalx.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class Talk(BaseModel):
description='The datetime in talk')
speakers: list[Speaker] = Field(
default_factory=list, description='A list of speaker objects')
answers: list[Answer] = Field(default_factory=list)
answers: list[Answer] | None = Field()

@validator('track', pre=True)
def verify_track(cls, value: Any) -> dict[str, str]:
Expand Down

0 comments on commit f6d0681

Please sign in to comment.