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.
After this change, the Id type is kept in module.py, and the LSP correctly reports the type as Id instead of Unknown.
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 asUnknown
instead of asId
.After this change, the
Id
type is kept inmodule.py
, and the LSP correctly reports the type asId
instead ofUnknown
.