You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is caused by the fact that example_scripts is a top-level package, but at one point you attempt to import from testing.example_scripts.rewrite.src.main import func. You likely need to fix that import and/or the expected import path for that test.
Steps to reproduce:
Clone from github repo:
gh pr checkout 13421
Cd to the repo:
cd pytest
Run mypy:
mypy .
or
run prcommit:
precommit --all-files
Expected:
All tests are passed.
Actual:
Example of run:
pytest-dev/pytest#13421
PS:
The
_init_
file exists and there are no relative imports of the failed file.Duplicate:
Despite https://stackoverflow.com/questions/63871252/source-file-found-twice-error-with-mypy-0-780-in-python-for-vscode doesn't contain relative path.
The text was updated successfully, but these errors were encountered: