diff options
| author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-06-19 21:21:52 +0200 |
|---|---|---|
| committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-08-16 22:24:46 +0200 |
| commit | 466e2c889c60f1909bf4ae571c3329cbca5be050 (patch) | |
| tree | 3427f08f147f692b9ecf161429f67c291bf0e798 | |
| parent | 5678bf4cec94b2f0b013dd4b1bae4fd8b599b9e4 (diff) | |
| download | astroid-git-466e2c889c60f1909bf4ae571c3329cbca5be050.tar.gz | |
Ignore a warning not relevant to the Visitor pattern
| -rw-r--r-- | astroid/nodes/as_string.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/astroid/nodes/as_string.py b/astroid/nodes/as_string.py index efa35a04..7ceb2956 100644 --- a/astroid/nodes/as_string.py +++ b/astroid/nodes/as_string.py @@ -20,13 +20,7 @@ # Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html # For details: https://github.com/PyCQA/astroid/blob/main/LICENSE -"""This module renders Astroid nodes as string: - -* :func:`to_code` function return equivalent (hopefully valid) python string - -* :func:`dump` function return an internal representation of nodes found - in the tree, useful for debugging or understanding the tree structure -""" +"""This module renders Astroid nodes as string""" from typing import TYPE_CHECKING if TYPE_CHECKING: @@ -48,6 +42,8 @@ if TYPE_CHECKING: DOC_NEWLINE = "\0" +# Visitor pattern require argument all the time and is not better with staticmethod +# noinspection PyUnusedLocal,PyMethodMayBeStatic class AsStringVisitor: """Visitor to render an Astroid node as a valid python code string""" |
