-
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] Use vendored typeshed stubs for stdlib module resolution #12224
Conversation
|
Fixes CI errors seen in #12224 (comment) x-ref python-trio/trio@17b3644
…n` (#12225) Fixes CI errors seen in #12224 (comment) x-ref python-trio/trio@17b3644
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good.
I would prefer if we can avoid introducing a FilePathRef
, see the inline comment why and a solution on how we can avoid it.
Overall, I start to like Carl's recommendation more and more. I think the current design makes some transformation unnecessarily verbose. But I'm okay moving forward with this (but would prefer for Carl to have a look at the PR as well)
c64a9a5
to
affd89f
Compare
6ee4e7c
to
3fb2a25
Compare
…n` (astral-sh#12225) Fixes CI errors seen in astral-sh#12224 (comment) x-ref python-trio/trio@17b3644
…n` (astral-sh#12225) Fixes CI errors seen in astral-sh#12224 (comment) x-ref python-trio/trio@17b3644
…n` (astral-sh#12225) Fixes CI errors seen in astral-sh#12224 (comment) x-ref python-trio/trio@17b3644
f17899f
to
d9a40d7
Compare
d9a54da
to
f3818a2
Compare
4ee6b8f
to
31a22fd
Compare
Summary
If the user does not pass a
--custom-typeshed-dir
flag via the CLI or via a configuration flag, fall back to using theVendoredFileSystem
to resolve standard-library modules in the module resolver. Work towards #11653.(This PR is stacked on top of #12215)
Test Plan
I added a test to
resolver.rs
that demonstrates that vendored files now work