Skip to content

Conversation

@Avasam
Copy link
Collaborator

@Avasam Avasam commented Apr 30, 2023

One idea to fix #10112 .

This idea could probably be extended to pytype and mypy stubs type-checking tests to reduce dependencies installs. (rename requirements-pyright.txt to requirements-stubs-typecheck.txt or something)

Or I can go the route of using grep in CI to only include the dependencies needed to run get_external_stub_requirements.py, whilst keeping the version requirement.

Or I can try to use grep to filter out types-* dependencies.

@Avasam Avasam changed the title Don't install requirements-tests.txt in pyright tests Don't install types-* dependencies in pyright tests Apr 30, 2023
@AlexWaygood
Copy link
Member

AlexWaygood commented Apr 30, 2023

How about #10121, as an alternative fix? Feels a bit cleaner imo

@AlexWaygood
Copy link
Member

Superseded by #10121

@AlexWaygood AlexWaygood closed this May 1, 2023
@Avasam Avasam deleted the pyright-types-issue branch May 1, 2023 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants