Skip to content
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

tests/mypy_test.py fails locally with stubs that have requires #8797

Closed
Avasam opened this issue Sep 27, 2022 · 0 comments · Fixed by #8800
Closed

tests/mypy_test.py fails locally with stubs that have requires #8797

Avasam opened this issue Sep 27, 2022 · 0 comments · Fixed by #8800
Assignees
Labels
project: infrastructure typeshed build, test, documentation, or distribution related

Comments

@Avasam
Copy link
Collaborator

Avasam commented Sep 27, 2022

Running the following locally: py .\tests\mypy_test.py stubs/D3DShot

Results in:

failure

C:\Users\Avasam\AppData\Local\Temp\tmpiqiqpwq3: No [mypy] section in config file

stubs\D3DShot\d3dshot\capture_output.pyi:7: error: Cannot find implementation or library stub for module named "PIL"  [import]
stubs\D3DShot\d3dshot\capture_output.pyi:7: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
stubs\D3DShot\d3dshot\capture_outputs\pytorch_capture_output.pyi:7: error: Cannot find implementation or library stub for module named "PIL"  [import]
stubs\D3DShot\d3dshot\capture_outputs\pil_capture_output.pyi:7: error: Cannot find implementation or library stub for module named "PIL"  [import]
stubs\D3DShot\d3dshot\capture_outputs\numpy_capture_output.pyi:7: error: Cannot find implementation or library stub for module named "PIL"  [import]
@Avasam Avasam changed the title tests/mypy_test.py tests locally with stubs that have requires tests/mypy_test.py fails locally with stubs that have requires Sep 27, 2022
@AlexWaygood AlexWaygood self-assigned this Sep 27, 2022
@AlexWaygood AlexWaygood added the project: infrastructure typeshed build, test, documentation, or distribution related label Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
project: infrastructure typeshed build, test, documentation, or distribution related
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants