From f577d44aef662d155c603f825703f67532af53e8 Mon Sep 17 00:00:00 2001 From: Daanish Date: Thu, 12 Nov 2026 14:24:01 -0800 Subject: [PATCH 1/2] Add type hint to _make_unique_tzname --- src/icalendar/cal/timezone.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/icalendar/cal/timezone.py b/src/icalendar/cal/timezone.py index 65881e264..16510a171 100644 --- a/src/icalendar/cal/timezone.py +++ b/src/icalendar/cal/timezone.py @@ -132,7 +132,7 @@ def _extract_offsets(component: TimezoneDaylight | TimezoneStandard, tzname: str return is_dst, transitions @staticmethod - def _make_unique_tzname(tzname, tznames): + def _make_unique_tzname(tzname: str, tznames: set[str]) -> str: """ :param tzname: Candidate tzname :param tznames: Other tznames From 2bf7af13a3aac5c714bd05ef09ac90c7e87e7a20 Mon Sep 17 00:00:00 2001 From: Daanish Date: Thu, 12 Nov 2026 14:26:19 -0800 Subject: [PATCH 2/2] added doc file --- news/938.documentation.1 | 1 + 1 file changed, 1 insertion(+) create mode 100644 news/938.documentation.1 diff --git a/news/938.documentation.1 b/news/938.documentation.1 new file mode 100644 index 000000000..950044714 --- /dev/null +++ b/news/938.documentation.1 @@ -0,0 +1 @@ +Added argument and return type hints to :meth:`~icalendar.cal.timezone.Timezone._make_unique_tzname`. Located an untyped helper and confirm its call sites in ``get_transitions``. @kdaanish866