diff options
Diffstat (limited to 'pylint/checkers/async.py')
-rw-r--r-- | pylint/checkers/async.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pylint/checkers/async.py b/pylint/checkers/async.py index a470cde17..b06ec60c8 100644 --- a/pylint/checkers/async.py +++ b/pylint/checkers/async.py @@ -10,7 +10,7 @@ import sys from typing import TYPE_CHECKING import astroid -from astroid import nodes +from astroid import nodes, util from pylint import checkers from pylint.checkers import utils as checker_utils @@ -55,7 +55,7 @@ class AsyncChecker(checkers.BaseChecker): def visit_asyncwith(self, node: nodes.AsyncWith) -> None: for ctx_mgr, _ in node.items: inferred = checker_utils.safe_infer(ctx_mgr) - if inferred is None or inferred is astroid.Uninferable: + if inferred is None or isinstance(inferred, util.UninferableBase): continue if isinstance(inferred, nodes.AsyncFunctionDef): |