Skip to content

Commit

Permalink
Ignore type problem
Browse files Browse the repository at this point in the history
  • Loading branch information
lucc committed Dec 16, 2024
1 parent 17a8681 commit 4c43ad2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions khard/carddav_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@
def multi_property_key(item: str) -> Tuple[Literal[0], str]: ...
@overload
def multi_property_key(item: Dict[T, Any]) -> Tuple[Literal[1], T]: ...
@overload
def multi_property_key(item: Union[str, Dict[T, Any]]) -> Tuple[Union[Literal[0], Literal[1]], Union[str, T]]: ...
def multi_property_key(item: Union[str, Dict[T, Any]]
) -> Tuple[int, Union[T, str]]:
"""Key function to pass to sorted(), allowing sorting of dicts with lists
Expand Down Expand Up @@ -923,7 +921,7 @@ def _get_private_objects(self) -> Dict[str, List[Union[str, Dict[str, str]]]]:
{ablabel: child.value} if ablabel else child.value)
# sort private object lists
for value in private_objects.values():
value.sort(key=multi_property_key)
value.sort(key=multi_property_key) # type: ignore[reportArgumentType]
return private_objects

def _add_private_object(self, key: str, value: str) -> None:
Expand Down

0 comments on commit 4c43ad2

Please sign in to comment.