Skip to content
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

Make sure that Id type is kept in type stub #1455

Merged
merged 1 commit into from
Jun 6, 2024
Merged

Make sure that Id type is kept in type stub #1455

merged 1 commit into from
Jun 6, 2024

Conversation

wch
Copy link
Collaborator

@wch wch commented Jun 6, 2024

Previously, when generating type stubs with pyright, the Id type would get stripped out of module.py because it was only used inside of functions in the file. This causes the pyright/pylance LSP to report the type as Unknown instead of as Id.

image

After this change, the Id type is kept in module.py, and the LSP correctly reports the type as Id instead of Unknown.

@wch wch enabled auto-merge June 6, 2024 15:25
@wch wch disabled auto-merge June 6, 2024 18:03
@wch wch merged commit 0092ccb into main Jun 6, 2024
29 of 32 checks passed
@wch wch deleted the id-type-stub branch June 6, 2024 18:03
schloerke added a commit that referenced this pull request Jun 10, 2024
* epic/df:
  Make sure that `Id` type is kept in type stub (#1455)
  Remove outdated comments
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.

1 participant