Skip to content

Commit

Permalink
Fixed for mypy type
Browse files Browse the repository at this point in the history
Signed-off-by: Toomore Chiang <toomore0929@gmail.com>
  • Loading branch information
toomore committed Mar 26, 2024
1 parent 205fce9 commit 1bda6f9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions toldwords/pretalx.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ class Talk(BaseModel):
default_factory=int, description='The talk’s duration in minutes, or null')
content_locale: str = Field(
default_factory=str, description='The language the submission is in, e.g. “en” or “de”')
slot: Slot = Field(default=Slot, description='The datetime in talk')
slot: Slot = Field(default_factory=Slot,
description='The datetime in talk')
speakers: list[Speaker] = Field(
default_factory=list, description='A list of speaker objects')

Expand All @@ -67,7 +68,7 @@ def verify_track(cls, value: Any) -> dict[str, str]:
if value is None:
return {'en': 'no track'}

return value
return dict(value)


class Submission(BaseModel):
Expand Down Expand Up @@ -105,7 +106,7 @@ def verify_track(cls, value: Any) -> dict[str, str]:
if value is None:
return {'en': 'no track'}

return value
return dict(value)


class Room(BaseModel):
Expand Down

0 comments on commit 1bda6f9

Please sign in to comment.