Skip to content

Don't install types-* dependencies in pyright tests #10120

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

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