Skip to content

Commit 864fab9

Browse files
committed
fix
1 parent 9f83bf5 commit 864fab9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

khard/carddav_object.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
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]]: ...
4244
def multi_property_key(item: Union[str, Dict[T, Any]]
4345
) -> Tuple[int, Union[T, str]]:
4446
"""Key function to pass to sorted(), allowing sorting of dicts with lists

0 commit comments

Comments
 (0)