Skip to content

Commit

Permalink
Work in progress regression for #9751
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas committed Jun 26, 2024
1 parent 9f423bb commit 51f67e2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/whatsnew/fragments/9751.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Fixed a false positive ``unreachable-code`` when using ``typing.Any`` as return in python 3.8.

Closes #9751
15 changes: 15 additions & 0 deletions tests/functional/r/regression_02/regression_9751.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
"""
pylint 3.2.4 regression
https://github.com/pylint-dev/pylint/issues/9751
"""

# pylint: disable=missing-function-docstring

from typing import Any

def repro() -> Any:
return 5

def main():
x = repro() + 5
print(x)

0 comments on commit 51f67e2

Please sign in to comment.