summaryrefslogtreecommitdiff
path: root/pylint/checkers/typecheck.py
diff options
context:
space:
mode:
authorMarc Mueller <30130371+cdce8p@users.noreply.github.com>2023-04-25 18:57:51 +0200
committerGitHub <noreply@github.com>2023-04-25 18:57:51 +0200
commit1c66e4dd404cf368f8b89fd221e632ca11a07ded (patch)
treef3698a305b66a04b9eb1bd9553553bf031b80e05 /pylint/checkers/typecheck.py
parent9d629b816eb0f13cd44929b7baa9110b53b0251c (diff)
downloadpylint-git-1c66e4dd404cf368f8b89fd221e632ca11a07ded.tar.gz
Bump astroid to 3.0.0a1 (#8626)
Diffstat (limited to 'pylint/checkers/typecheck.py')
-rw-r--r--pylint/checkers/typecheck.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pylint/checkers/typecheck.py b/pylint/checkers/typecheck.py
index fe29879c5..97a7460a8 100644
--- a/pylint/checkers/typecheck.py
+++ b/pylint/checkers/typecheck.py
@@ -1654,7 +1654,7 @@ accessed. Python regular expressions are accepted.",
if not isinstance(inferred, nodes.FunctionDef):
return False
- for return_value in inferred.infer_call_result():
+ for return_value in inferred.infer_call_result(caller=None):
# infer_call_result() returns nodes.Const.None for None return values
# so this also catches non-returning decorators
if not isinstance(return_value, nodes.FunctionDef):