-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
IsADirectoryError
for namespace packages when using --linecoverage-report
#18128
Labels
Comments
I am able to reproduce on master (3b00002),
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Crash Report
This is similar to #15979:
For namespace packages, e.g., when a package contains a data directory without any Python files,
IsADirectoryError
is raised when using the--linecoverage-report
option. This happens when using the--package
option, but not when passing the directory path.Traceback
To Reproduce
with
pyproject.toml
:pip install .
mypy --package test_package --linecoverage-report . --raise-exceptions
Your Environment
--package
,--linecoverage-report
,--raise-exceptions
The text was updated successfully, but these errors were encountered: