class documentation

class _OperatorDelimiter:

View In Hierarchy

A context manager that can add enclosing delimiters to nested operators when needed.

Adapted from astor library, thanks.

Method __enter__ Undocumented
Method __exit__ Undocumented
Method __init__ Undocumented
Instance Variable colorizer Undocumented
Instance Variable discard No parenthesis by default.
Instance Variable marked Undocumented
Instance Variable state Undocumented
def __enter__(self):

Undocumented

Returns
_OperatorDelimiterUndocumented
def __exit__(self, *exc_info):

Undocumented

Parameters
*exc​_info:AnyUndocumented
def __init__(self, colorizer, state, node):

Undocumented

Parameters
colorizer:PyvalColorizerUndocumented
state:_ColorizerStateUndocumented
node:Union[ast.UnaryOp, ast.BinOp, ast.BoolOp]Undocumented
colorizer =

Undocumented

discard: bool =
No parenthesis by default.
marked =

Undocumented

state =

Undocumented