class documentation
class _AnnotationStringParser(NodeTransformer): (source)
Implementation of unstring_annotation
.
When given an expression, the node returned by visit()
will also be an expression.
If any string literal contained in the original expression is either
invalid Python or not a singular expression, SyntaxError
or astroid.exceptions.AstroidError
is raised.
Method | visit_ |
Undocumented |
Method | visit_ |
Undocumented |
Inherited from NodeTransformer
:
Method | generic |
Called if no explicit visitor function exists for a node. |
Inherited from NodeVisitor
(via NodeTransformer
):
Method | visit |
Visit a node. |