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 [possibly-used-before-assignment] Avoid FP for typing.NoReturn & Never #9742

Closed Pierre-Sassoulas closed 3 months ago

Pierre-Sassoulas commented 3 months ago

Manual backport of #9714 after a cherry-pick conflict.

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 (22e4d36) to head (078f7a4). Report is 20 commits behind head on maintenance/3.2.x.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/pylint-dev/pylint/pull/9742/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/9742?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 #9742 +/- ## ===================================================== - Coverage 95.83% 95.82% -0.01% ===================================================== Files 174 174 Lines 18838 18843 +5 ===================================================== + Hits 18053 18057 +4 - Misses 785 786 +1 ``` | [Files with missing lines](https://app.codecov.io/gh/pylint-dev/pylint/pull/9742?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/9742?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% <100.00%> (+0.01%)` | :arrow_up: | | [pylint/checkers/variables.py](https://app.codecov.io/gh/pylint-dev/pylint/pull/9742?src=pr&el=tree&filepath=pylint%2Fcheckers%2Fvariables.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pylint-dev#diff-cHlsaW50L2NoZWNrZXJzL3ZhcmlhYmxlcy5weQ==) | `97.30% <ø> (-0.08%)` | :arrow_down: |