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 715ed45 commit b7f2529Copy full SHA for b7f2529
1 file changed
cursorless-talon/src/command.py
@@ -10,7 +10,7 @@
10
@dataclasses.dataclass
11
class CursorlessCommand:
12
version = COMMAND_VERSION
13
- spokenForm: str
+ spokenForm: str | None
14
usePrePhraseSnapshot: bool
15
action: dict
16
@@ -66,7 +66,7 @@ def construct_cursorless_command(action: dict) -> dict:
66
except KeyError:
67
use_pre_phrase_snapshot = False
68
69
- spoken_form = " ".join(last_phrase["phrase"])
+ spoken_form = " ".join(last_phrase["phrase"]) if "phrase" in last_phrase else None
70
71
return make_serializable(
72
CursorlessCommand(
0 commit comments