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

chore: ignore coverage in TYPE_CHECKING blocks #5092

Merged

Conversation

bastimeyer
Copy link
Member

@bastimeyer bastimeyer commented Jan 14, 2023

Accidentally forgot to suppress coverage of the TYPE_CHECKING block added in #5090.
https://app.codecov.io/gh/streamlink/streamlink/pull/5090

This PR adds TYPE_CHECKING to the list of excluded lines via pyproject.toml. But since pycharm seems to ignore this when building coverage reports via the coverage module, I also added the regular # pragma: no cover directive.

@bastimeyer
Copy link
Member Author

bastimeyer commented Jan 14, 2023

Btw, codecov is once again showing complete nonsense data, both for PRs and for the master branch (which is outdated). 🤦‍♂️

@bastimeyer bastimeyer merged commit fe9be00 into streamlink:master Jan 14, 2023
@bastimeyer bastimeyer deleted the coverage/ignore-type-checking branch January 14, 2023 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant