Skip to content

Typeshed path override breaks stdlib typesΒ #1621

@yangdanny97

Description

@yangdanny97

Describe the Bug

Repro:

  1. In the root of your project, run clone typeshed git clone https://github.com/python/typeshed.git
  2. Make a pyrefly.toml with the following contents typeshed-path="./typeshed"
  3. Make a file with the following contents x: int = 1
  4. Observe the following error: Literal[1]` is not assignable to `int

I also confirmed that typeshed-path="./typeshed/stdlib" does not work - we fall back to the bundled typeshed and do not pick up any added types if I modify the typeshed source.

Sandbox Link

No response

(Only applicable for extension issues) IDE Information

No response

Metadata

Metadata

Assignees

Labels

UserBugs reported by external users that should be prioritisedconfigurationtypeshed

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions