Skip to content

Commit 4c43ad2

Browse files
committed
Ignore type problem
1 parent 17a8681 commit 4c43ad2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

khard/carddav_object.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@
3939
def multi_property_key(item: str) -> Tuple[Literal[0], str]: ...
4040
@overload
4141
def multi_property_key(item: Dict[T, Any]) -> Tuple[Literal[1], T]: ...
42-
@overload
43-
def multi_property_key(item: Union[str, Dict[T, Any]]) -> Tuple[Union[Literal[0], Literal[1]], Union[str, T]]: ...
4442
def multi_property_key(item: Union[str, Dict[T, Any]]
4543
) -> Tuple[int, Union[T, str]]:
4644
"""Key function to pass to sorted(), allowing sorting of dicts with lists
@@ -923,7 +921,7 @@ def _get_private_objects(self) -> Dict[str, List[Union[str, Dict[str, str]]]]:
923921
{ablabel: child.value} if ablabel else child.value)
924922
# sort private object lists
925923
for value in private_objects.values():
926-
value.sort(key=multi_property_key)
924+
value.sort(key=multi_property_key) # type: ignore[reportArgumentType]
927925
return private_objects
928926

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

0 commit comments

Comments
 (0)