Skip to content

pyright gives types found in site-packages higher priority than types found in typeshed #10112

Description

@Avasam

See this comment for context and example: #10058 (comment)

I think this only affects pyyaml and setuptools at the moment, as they are they only type-* packages installed during tests.

Can probably be fixed by specifying the --typeshed-path cli argument. Note that this would have to be done in pyright_test.py and all Github actions. I have not tested this potential solution myself yet, and I didn't feel like doing this right now, hence this issue to remember.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    project: infrastructuretypeshed build, test, documentation, or distribution related

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions