class documentation

class _AnnotationStringParser(ast.NodeTransformer):

View In Hierarchy

Implementation of ModuleVistor._unstring_annotation().

When given an expression, the node returned by ast.NodeVisitor.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 is raised.

Method visit_​Constant Undocumented
Method visit_​Str Undocumented
Method visit_​Subscript Undocumented
Method ​_parse​_string Undocumented
def visit_Constant(self, node):

Undocumented

Parameters
node:ast.ConstantUndocumented
Returns
ast.exprUndocumented
def visit_Str(self, node):

Undocumented

Parameters
node:ast.StrUndocumented
Returns
ast.exprUndocumented
def visit_Subscript(self, node):

Undocumented

Parameters
node:ast.SubscriptUndocumented
Returns
ast.SubscriptUndocumented
def _parse_string(self, value):

Undocumented

Parameters
value:strUndocumented
Returns
ast.exprUndocumented