pylint-dev / pylint

It's not just a linter that annoys you!
https://pylint.readthedocs.io/en/latest/
GNU General Public License v2.0
5.26k stars 1.12k forks source link

[Backport maintenance/3.2.x] False positive ``unreachable-code`` when using ``typing.Any`` as return in python 3.8 #9755

Closed github-actions[bot] closed 3 months ago

github-actions[bot] commented 3 months ago

Backport d281f2fbf9672706ac07ee45d7cff3c4e2ff83bb from #9753.

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 95.82%. Comparing base (6c3ab77) to head (df88781).

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/pylint-dev/pylint/pull/9755/graphs/tree.svg?width=650&height=150&src=pr&token=ZETEzayrfk&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pylint-dev)](https://app.codecov.io/gh/pylint-dev/pylint/pull/9755?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pylint-dev) ```diff @@ Coverage Diff @@ ## maintenance/3.2.x #9755 +/- ## ================================================== Coverage 95.82% 95.82% ================================================== Files 174 174 Lines 18843 18843 ================================================== Hits 18057 18057 Misses 786 786 ``` | [Files with missing lines](https://app.codecov.io/gh/pylint-dev/pylint/pull/9755?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pylint-dev) | Coverage Δ | | |---|---|---| | [pylint/checkers/utils.py](https://app.codecov.io/gh/pylint-dev/pylint/pull/9755?src=pr&el=tree&filepath=pylint%2Fcheckers%2Futils.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pylint-dev#diff-cHlsaW50L2NoZWNrZXJzL3V0aWxzLnB5) | `96.16% <ø> (ø)` | |