Skip to content

Add pyright hook #1172

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

Closed
wants to merge 2 commits into from
Closed

Add pyright hook #1172

wants to merge 2 commits into from

Conversation

tjkuson
Copy link

@tjkuson tjkuson commented Jul 24, 2025

Hello, I was working with this plugin and encountered this issue.

I added pyright as a pre-commit check with exclusions matching the mypy hook.

This reveals one error involving function.parent possibly being None. I resolved this by adding an assertion, as that appears to be most consistent with the rest of the codebase.

The pre-commit hooks and test suite are passing locally.

Closes #731

@tjkuson tjkuson marked this pull request as draft July 24, 2025 17:19
@tjkuson
Copy link
Author

tjkuson commented Jul 24, 2025

I'll close this for now, there's an issue with pyright and pre-commit CI: RobertCraigie/pyright-python#345

@tjkuson tjkuson closed this Jul 24, 2025
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.

Decorator type signatures not recognized by pyright
1 participant