mirror of
https://github.com/microsoft/pyright.git
synced 2024-09-11 07:55:56 +03:00
Updated import resolution documentation to cover a case that was previously not mentioned in the docs. This addresses #6415.
This commit is contained in:
parent
ace7edb41e
commit
e4197c3c2b
@ -26,6 +26,7 @@ For absolute (non-relative) imports, Pyright employs the following resolution or
|
||||
|
||||
5. Try to resolve using a **third-party typeshed** stub. If the `typeshedPath` is configured, use this instead of the typeshed stubs that are packaged with Pyright. This allows for the use of a newer or a patched version of the typeshed third-party stubs.
|
||||
|
||||
6. For an absolute import, if all of the above attempts fail, attempt to import a module from the same directory as the importing file and parent directories that are also children of the root workspace. This accommodates cases where it is assumed that a Python script will be executed from one of these subdirectories rather than from the root directory.
|
||||
|
||||
|
||||
### Configuring Your Python Environment
|
||||
|
Loading…
Reference in New Issue
Block a user