diff options
Diffstat (limited to 'pylint/checkers/async.py')
-rw-r--r-- | pylint/checkers/async.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pylint/checkers/async.py b/pylint/checkers/async.py index bd82931..c1914f4 100644 --- a/pylint/checkers/async.py +++ b/pylint/checkers/async.py @@ -17,7 +17,6 @@ import astroid
from astroid import exceptions
-from astroid import helpers
from pylint import checkers
from pylint.checkers import utils as checker_utils
@@ -53,7 +52,7 @@ class AsyncChecker(checkers.BaseChecker): @checker_utils.check_messages('not-async-context-manager')
def visit_asyncwith(self, node):
for ctx_mgr, _ in node.items:
- infered = helpers.safe_infer(ctx_mgr)
+ infered = utils.safe_infer(ctx_mgr)
if infered is None or infered is astroid.YES:
continue
@@ -65,7 +64,7 @@ class AsyncChecker(checkers.BaseChecker): if isinstance(infered, astroid.Instance):
# If we do not know the bases of this class,
# just skip it.
- if not helpers.has_known_bases(infered):
+ if not utils.has_known_bases(infered):
continue
# Just ignore mixin classes.
if self._ignore_mixin_members:
|