You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think we can do the same for icalendar.Calendar.to_ical()
a new method called icalendar.Calendar.to_file() that excepts a path and uses to_ical() and write it to the given path
In order to make it nicer to use the icalendar interface, we can add these two types to
icalendar.Calendar.from_ical()
:pathlib.Path
str
In both cases, we assume a path is given.
Implementation suggestion
str
intoPath
Path.read_bytes()
to get the content that would usually be passed to thefrom_ical()
str
Context
Usually, these are
.ics
files. As such, the other components do not need that feature.The text was updated successfully, but these errors were encountered: