Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo and wrong value in default_factory for CalendarStream.calendars #328

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix typo and wrong value in default_factory for CalendarStream.calendars
Suppose it's exceedingly rare that a stream contain no calendars, but
better safe than sorry
  • Loading branch information
olejorgenb committed Apr 27, 2024
commit 34a60c9d05640dc2dd7e22f3990f96a0204b244f
2 changes: 1 addition & 1 deletion ical/calendar_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class CalendarStream(ComponentModel):
support encoding. See `IcsCalendarStream` instead for encoding ics files.
"""

calendars: list[Calendar] = Field(alias="vcalendar", defaut_factory=[])
calendars: list[Calendar] = Field(alias="vcalendar", default_factory=list)

@classmethod
def from_ics(cls, content: str) -> "CalendarStream":
Expand Down