class documentation

class _AnnotationStringParser(NodeTransformer): (source)

View In Hierarchy

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_Const Undocumented
Method visit_Subscript Undocumented

Inherited from NodeTransformer:

Method generic_visit Called if no explicit visitor function exists for a node.

Inherited from NodeVisitor (via NodeTransformer):

Method visit Visit a node.
def visit_Const(self, node): (source)

Undocumented

Parameters
node:astroid.nodes.ConstUndocumented
Returns
astroid.nodes.NodeNGUndocumented
def visit_Subscript(self, node): (source)

Undocumented

Parameters
node:astroid.nodes.SubscriptUndocumented
Returns
astroid.nodes.SubscriptUndocumented