Skip to content
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions news/938.documentation.1
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion src/icalendar/cal/timezone.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading