-
-
Notifications
You must be signed in to change notification settings - Fork 84
Fix type hints #822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix type hints #822
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems reasonable at a quick glance
await_command: bool = True | ||
|
||
|
||
def get_parameters(action: MakeshiftAction): | ||
command = action.vscode_command_id | ||
command_options = { | ||
command_options: dict[str, Any] = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can the values be Callable
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No; see a few lines below: we can have vscode_command_args
at key "commandArgs"
. This will be a list of items of unknown type, as they are arguments to an arbitrary VSCode command
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah. I'll see if I can't turn this into a dataclass or something at some point then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah right yeah that sounds good. You mean as part of #725 I assume
I fixed all the easy ones. There were a few that I couldn't fix due to the way Talon works, eg not having
self
arg in action classesChecklist