We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f83bf5 commit 864fab9Copy full SHA for 864fab9
khard/carddav_object.py
@@ -39,6 +39,8 @@
39
def multi_property_key(item: str) -> Tuple[Literal[0], str]: ...
40
@overload
41
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]]: ...
44
def multi_property_key(item: Union[str, Dict[T, Any]]
45
) -> Tuple[int, Union[T, str]]:
46
"""Key function to pass to sorted(), allowing sorting of dicts with lists
0 commit comments