Update src/icalendar/attr.py

Co-authored-by: Steve Piercy <web@stevepiercy.com>
pull/896/head
Sashank 2025-09-17 14:13:16 +05:30 zatwierdzone przez GitHub
rodzic 99b7f49320
commit 76f17ecc32
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -1511,10 +1511,10 @@ def get_start_end_duration_with_validation(
Verify calendar validity and return start, end, and duration with RFC 5545 validation.
Args:
component: The component to validate (Event or Todo)
start_property: The start property name ('DTSTART')
end_property: The end property name ('DTEND' for Event, 'DUE' for Todo)
component_name: The component name for error messages ('VEVENT' or 'VTODO')
component: The component to validate, either ``Event`` or ``Todo``.
start_property: The start property name, ``DTSTART``.
end_property: The end property name, either ``DTEND`` for ``Event`` or ``DUE`` for ``Todo``.
component_name: The component name for error messages, either ``VEVENT`` or ``VTODO``.
Returns:
tuple: (start, end, duration) values from the component