@@ -88,7 +88,8 @@ def cursorless_action_or_ide_command(m) -> dict[str, str]:
8888
8989@mod .action_class
9090class Actions :
91- def cursorless_command (action_name : str , target : CursorlessExplicitTarget ): # pyright: ignore [reportGeneralTypeIssues]
91+ @staticmethod
92+ def cursorless_command (action_name : str , target : CursorlessExplicitTarget ):
9293 """Perform cursorless command on target"""
9394 if action_name in callback_actions :
9495 callback_actions [action_name ](target )
@@ -109,29 +110,33 @@ def cursorless_command(action_name: str, target: CursorlessExplicitTarget): # p
109110 action = {"name" : action_name , "target" : target }
110111 actions .user .private_cursorless_command_and_wait (action )
111112
112- def cursorless_vscode_command (command_id : str , target : CursorlessTarget ): # pyright: ignore [reportGeneralTypeIssues]
113+ @staticmethod
114+ def cursorless_vscode_command (command_id : str , target : CursorlessTarget ):
113115 """
114116 Perform vscode command on cursorless target
115117
116118 Deprecated: prefer `cursorless_ide_command`
117119 """
118120 return actions .user .cursorless_ide_command (command_id , target )
119121
120- def cursorless_ide_command (command_id : str , target : CursorlessTarget ): # pyright: ignore [reportGeneralTypeIssues]
122+ @staticmethod
123+ def cursorless_ide_command (command_id : str , target : CursorlessTarget ):
121124 """Perform ide command on cursorless target"""
122125 return cursorless_execute_command_action (command_id , target )
123126
127+ @staticmethod
124128 def cursorless_insert (
125- destination : CursorlessDestination , # pyright: ignore [reportGeneralTypeIssues]
129+ destination : CursorlessDestination ,
126130 text : Union [str , list [str ]],
127131 ):
128132 """Perform text insertion on Cursorless destination"""
129133 if isinstance (text , str ):
130134 text = [text ]
131135 cursorless_replace_action (destination , text )
132136
137+ @staticmethod
133138 def private_cursorless_action_or_ide_command (
134- instruction : dict [str , str ], # pyright: ignore [reportGeneralTypeIssues]
139+ instruction : dict [str , str ],
135140 target : CursorlessTarget ,
136141 ):
137142 """Perform cursorless action or ide command on target (internal use only)"""
0 commit comments