Skip to content
Discussion options

You must be logged in to vote

The auto-import mechanism in pyright is relatively limited. It works off of its internal memory-based cache. If the type checker hasn't seen the file (either via an import or by opening the file), it will not have symbols for that file cached.

Pyright is primarily focused on type checking. It has some limited language server features, but it's meant to be the foundation for more sophisticated language server features. Pylance is Microsoft's premium Python language server, and it includes many additional features. One of those features is an indexing mechanism that builds and maintains an index of symbols in all files in your project and all installed packages. This allows it to provide co…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jaklimoff
Comment options

@erictraut
Comment options

Answer selected by jaklimoff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants