Skip to content

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

Closed

Description

@Avasam

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]

Activity

  1. 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`[/+] on Sep 27, 2022
  2. self-assigned this
    on Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions