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

False positive unreachable-code when using typing.Any as return in python 3.8 #9753

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

Pierre-Sassoulas
Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas commented Jun 26, 2024

Type of Changes

Type
βœ“ πŸ› Bug fix

Description

Closes #9751 regression introduced in #9714 by c41c35a

This comment has been minimized.

@jacobtylerwalls
Copy link
Member

Looks good, happy to approve once the functional tests are altered for 3.8

@Pierre-Sassoulas
Copy link
Member Author

Thank you for the review. I wanted to validate the approach before committing to refactoring the functional tests. (wondered if you wanted to fix python 3.8). Should be mergeable now, What do you think about releasing 3.2.5 directly with only this ? It's a regression and there's a lot of traffic on #9751

Copy link

codecov bot commented Jun 28, 2024

Codecov Report

All modified and coverable lines are covered by tests βœ…

Project coverage is 95.84%. Comparing base (9f423bb) to head (549eb4d).
Report is 10 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #9753   +/-   ##
=======================================
  Coverage   95.84%   95.84%           
=======================================
  Files         174      174           
  Lines       18878    18878           
=======================================
  Hits        18094    18094           
  Misses        784      784           
Files Coverage Ξ”
pylint/checkers/utils.py 96.16% <ΓΈ> (ΓΈ)

Copy link
Contributor

πŸ€– According to the primer, this change has no effect on the checked open source code. πŸ€–πŸŽ‰

This comment was generated for commit 549eb4d

@Pierre-Sassoulas Pierre-Sassoulas merged commit d281f2f into main Jun 28, 2024
46 checks passed
@Pierre-Sassoulas Pierre-Sassoulas deleted the fix-regression-9751 branch June 28, 2024 07:28
github-actions bot pushed a commit that referenced this pull request Jun 28, 2024
Refs #9751

Co-authored-by: John Snow <[email protected]>
(cherry picked from commit d281f2f)
Pierre-Sassoulas added a commit that referenced this pull request Jun 28, 2024
Refs #9751

Co-authored-by: John Snow <[email protected]>
(cherry picked from commit d281f2f)

Co-authored-by: Pierre Sassoulas <[email protected]>
@jacobtylerwalls jacobtylerwalls removed their request for review June 28, 2024 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

With Pylint 3.2.4 and Python 3.8 getting incorrect error W0101: Unreachable code (unreachable)
2 participants