astral-sh / ruff

An extremely fast Python linter and code formatter, written in Rust.
https://docs.astral.sh/ruff
MIT License
30.66k stars 1.02k forks source link

[red-knot] PEP 561 compliant module resolver #11653

Open carljm opened 3 months ago

carljm commented 3 months ago

(Or intentional choices to diverge from PEP 561 compliance.)

Subtasks:

MichaReiser commented 2 months ago

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.

AlexWaygood commented 2 months ago

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

Use vendored typeshed stubs at runtime to resolve symbols to stdlib definitions if --custom-typeshed-dir is not passed

since, as you say, it's necessary to implement a vendored filesystem in order to be able to do that