Skip to content

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

Merged
merged 2 commits into from
Jul 4, 2022
Merged

Fix type hints #822

merged 2 commits into from
Jul 4, 2022

Conversation

pokey
Copy link
Member

@pokey pokey commented Jul 4, 2022

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 classes

Checklist

Copy link
Member

@auscompgeek auscompgeek left a 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] = {
Copy link
Member

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?

Copy link
Member Author

@pokey pokey Jul 4, 2022

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

Copy link
Member

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.

Copy link
Member Author

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

@pokey pokey merged commit 374e4b0 into main Jul 4, 2022
@pokey pokey deleted the pokey/fix-pylance-issues branch July 4, 2022 14:57
cursorless-bot pushed a commit that referenced this pull request Jul 4, 2022
thetomcraig-aya pushed a commit to thetomcraig/cursorless that referenced this pull request Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants