-
Notifications
You must be signed in to change notification settings - Fork 211
Open
Labels
UserBugs reported by external users that should be prioritisedBugs reported by external users that should be prioritisedconfigurationtypeshed
Description
Describe the Bug
Repro:
- In the root of your project, run clone typeshed
git clone https://github.com/python/typeshed.git - Make a pyrefly.toml with the following contents
typeshed-path="./typeshed" - Make a file with the following contents
x: int = 1 - 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
guoci
Metadata
Metadata
Assignees
Labels
UserBugs reported by external users that should be prioritisedBugs reported by external users that should be prioritisedconfigurationtypeshed