summaryrefslogtreecommitdiff
path: root/tests/extensions
diff options
context:
space:
mode:
authorMarc Mueller <30130371+cdce8p@users.noreply.github.com>2021-08-19 09:01:49 +0200
committerGitHub <noreply@github.com>2021-08-19 09:01:49 +0200
commit7ed757e2751871a7f54afc0e1534c14ee63088f7 (patch)
treeea520d50b523fe518e62efe7aed8a534a9de521e /tests/extensions
parent9cc3ffae26b049e91737fdff8dbcadb3c15b9825 (diff)
downloadpylint-git-7ed757e2751871a7f54afc0e1534c14ee63088f7.tar.gz
Use alias for astroid.nodes 04 (#4869)
* Use alias for astroid nodes 04 * Resolve name conflicts * Apply suggestions from code review Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Diffstat (limited to 'tests/extensions')
-rw-r--r--tests/extensions/test_check_docs.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/extensions/test_check_docs.py b/tests/extensions/test_check_docs.py
index d43766b97..aa8a700f0 100644
--- a/tests/extensions/test_check_docs.py
+++ b/tests/extensions/test_check_docs.py
@@ -26,6 +26,7 @@ in particular the parameter documentation checker `DocstringChecker`
import astroid
import pytest
+from astroid import nodes
from pylint.extensions.docparams import DocstringParameterChecker
from pylint.testutils import CheckerTestCase, Message, set_config
@@ -344,12 +345,10 @@ class TestParamDocChecker(CheckerTestCase):
"""Visit all methods of a class node
:param node: class node
- :type node: :class:`astroid.scoped_nodes.Class`
+ :type node: :class:`nodes.Class`
"""
for body_item in node.body:
- if isinstance(body_item, astroid.FunctionDef) and hasattr(
- body_item, "name"
- ):
+ if isinstance(body_item, nodes.FunctionDef) and hasattr(body_item, "name"):
self.checker.visit_functiondef(body_item)
def test_missing_method_params_in_sphinx_docstring(self):