Skip to content

Fix LSP type checking for ops wrapped with @api#30

Merged
fferflo merged 1 commit intofferflo:masterfrom
marcelroed:master
Mar 31, 2026
Merged

Fix LSP type checking for ops wrapped with @api#30
fferflo merged 1 commit intofferflo:masterfrom
marcelroed:master

Conversation

@marcelroed
Copy link
Copy Markdown
Contributor

Typing is currently missing for all API functions wrapped with @api as far as ty is concerned.

image

This PR adds a minor typing override to make sure autocomplete is more reliable and typing can be checked properly. As far as I know pyright already gets this right, but ty requires this change to pass type checking and give proper LSP suggestions.

Longer term it might be nice to type check the entire repo.

Thanks!

@fferflo fferflo merged commit dca54f2 into fferflo:master Mar 31, 2026
3 checks passed
@fferflo
Copy link
Copy Markdown
Owner

fferflo commented Apr 1, 2026

Thanks!

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