-
-
Notifications
You must be signed in to change notification settings - Fork 433
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
Coverage on overload stubs for typing #970
Comments
You can configure coverage.py to ignore the overload functions by adding this to your .coveragerc file:
(You need "pragma: not covered" there to keep the default pragma comment working.) Perhaps a future version of coverage will know more about typing natively, but this will fix your project for the time-being. |
see nedbat/coveragepy#970 for further details
Would it perhaps make sense to add
I suppose a downside would be that this would also catch |
coverage.py does not currently handle @overload decorated methods gracefully. Because they are not allowed to contain code, their method bodies should be ignored. See nedbat/coveragepy#970 (comment)
Situation
Coverage marks
@overload
stubs as uncovered.Expected results
Full coverage
Current output
Versioning
The text was updated successfully, but these errors were encountered: