mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-24 01:08:10 +02:00
Add more type annotations
This commit is contained in:
@@ -64,7 +64,7 @@ class PayloadGetter:
|
||||
|
||||
no_response = NoResponse()
|
||||
payload_get = object()
|
||||
ResponseType = Union[bool, str, None]
|
||||
ResponseType = Union[bool, str, None, NoResponse]
|
||||
CmdReturnType = Union[Dict[str, Any], List[Any], Tuple[Any, ...], str, int, float, bool]
|
||||
CmdGenerator = Iterator[CmdReturnType]
|
||||
PayloadType = Optional[Union[CmdReturnType, CmdGenerator]]
|
||||
|
||||
Reference in New Issue
Block a user