-
-
Notifications
You must be signed in to change notification settings - Fork 244
Open
Description
Describe the bug
X- properties can have their type set. However, we lose that information on runtime.
To reproduce
import icalendar
cal = """
BEGIN:VCALENDAR
X-FILTER-DATE-RANGE;VALUE=PERIOD:20250202T000000/20250203T000000
END:VCALENDAR
"""
calendar = icalendar.Calendar.from_ical(cal)
print(calendar["x-filter-date-range"])Output:
vText(b'20250202T000000/20250203T000000')
Expected behavior
This should be vPeriod
Environment
- Operating system: linux
- Python version: 3.13
-
icalendarversion: 7.0.1
Additional context
- I tested it with the latest version. For example, I used the command
pip3 install --upgrade https://github.com/collective/icalendar.git. - I attached the
.icssample file, or there is no.icssample file.
See also:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels