summaryrefslogtreecommitdiff
path: root/pylint/checkers/async.py
diff options
context:
space:
mode:
authorDaniel van Noord <13665637+DanielNoord@users.noreply.github.com>2023-03-06 08:56:07 +0100
committerDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2023-03-07 21:53:22 +0100
commitb4fe93a9f8059efb0b462d879da3c3d8ef9e7010 (patch)
tree0d9d14d714a00b961ebebc29fa95d42fb1b1af4a /pylint/checkers/async.py
parent9c4fbedb368d87c383f86ece309a2473e6b1e68a (diff)
downloadpylint-git-b4fe93a9f8059efb0b462d879da3c3d8ef9e7010.tar.gz
Use UninferableBase instead of Uninferable
Diffstat (limited to 'pylint/checkers/async.py')
-rw-r--r--pylint/checkers/async.py4
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):