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/641.removal
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Removed the unused ``Parameters.params()`` method, an undocumented alias for ``Parameters.keys()`` with no callers in the codebase. I used SWE-2 to assist with this change. :user:`Seyamalam`
8 changes: 1 addition & 7 deletions src/icalendar/parser/parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from icalendar.timezone.tzid import tzid_from_dt

if TYPE_CHECKING:
from collections.abc import Callable, KeysView, Sequence
from collections.abc import Callable, Sequence

from icalendar.enums import VALUE
from icalendar.parser.xcal.adapter import ElementAdapter
Expand Down Expand Up @@ -370,12 +370,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
"CN": " '",
}

def params(self) -> KeysView[str]:
"""In RFC 5545 keys are called parameters, so this is to be consitent
with the naming conventions.
"""
return self.keys()

def to_ical(self, sorted: bool = True) -> bytes: # noqa: A002
"""Returns an :rfc:`5545` representation of the parameters.

Expand Down