diff options
author | Marc Mueller <30130371+cdce8p@users.noreply.github.com> | 2021-08-19 09:01:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-19 09:01:49 +0200 |
commit | 7ed757e2751871a7f54afc0e1534c14ee63088f7 (patch) | |
tree | ea520d50b523fe518e62efe7aed8a534a9de521e /tests/extensions | |
parent | 9cc3ffae26b049e91737fdff8dbcadb3c15b9825 (diff) | |
download | pylint-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.py | 7 |
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): |