-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[red-knot] PEP 561 compliant module resolver #11653
Comments
One thing that we need to implement as part of this is a vendored filesystem. It's not a functionality but a task to complete on our way to get there. |
Right. I was considering that part of
since, as you say, it's necessary to implement a vendored filesystem in order to be able to do that |
@AlexWaygood is there more work that needs doing or can we consider this done? |
We can't call ourself PEP-561-compliant until we do this, which is still outstanding, and important. It's not huge, but also not trivial:
But we decided to defer work on it for now because the type-inference work is more important. We should also add support for |
(Or intentional choices to diverge from PEP 561 compliance.)
Subtasks:
--custom-typeshed-dir
internally: [red-knot] Encapsulate module resolution logic inmodule.rs
#11767module.rs
#11767--custom-typeshed-dir
is not passedVendoredFileSystem
implementation: [red-knot]: Add a VendoredFileSystem implementation #11863VendoredFileSystem
implementation to resolve stdlib stubs: [red-knot] Use vendored typeshed stubs for stdlib module resolution #12224-stubs
installed intosite-packages
(must take priority over other packages installed intosite-packages
)VERSIONS
file: we shouldn't fallback to a typeshed module if theVERSIONS
file specifies it does not exist with the--target-version
the user passes.VERSIONS
: [red-knot] Add a parser for typeshed's VERSIONS file #11836VERSIONS
file when resolving stdlib modules: [red-knot] Respect typeshed'sVERSIONS
file when resolving stdlib modules #12141._pth
files:read_directory()
method to theruff_db::system::System
trait #12289py.typed
files withpartial
in them, which are used to explicitly mark a package's annotations as partially completeThe text was updated successfully, but these errors were encountered: