Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return ListComp Call NameLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad TupleLoad AttributeLoad NameLoad attr Str TupleLoad AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Str Str ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad TupleLoad AttributeLoad NameLoad attr Str TupleLoad AttributeLoad NameLoad attr Str TupleLoad AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad TupleLoad AttributeLoad NameLoad attr Str TupleLoad AttributeLoad NameLoad attr Str TupleLoad AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr ListLoad Str Str ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr ListLoad Str Str ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListComp NameLoad comprehension NameStore AttributeLoad NameLoad attr CompareNotIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Num attr Assign NameStore SubscriptLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Index Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Index Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A Tests for yapf.unwrapped_line. N/A textwrap N/A unittest lib2to3 pytree lib2to3.pgen2 token yapf.yapflib comment_splicer yapf.yapflib format_token yapf.yapflib pytree_unwrapper yapf.yapflib pytree_utils yapf.yapflib split_penalty yapf.yapflib subtype_assigner yapf.yapflib unwrapped_line _MakeFormatTokenLeaf N/A N/A token_type token_value N/A N/A N/A N/A N/A format_token FormatToken N/A N/A pytree Leaf token_type token_value N/A _MakeFormatTokenList N/A N/A token_type_values N/A N/A N/A N/A N/A _MakeFormatTokenLeaf token_type token_value N/A N/A token_type token_value token_type_values N/A UnwrappedLineBasicTest N/A N/A unittest TestCase N/A testConstruction N/A N/A self N/A N/A N/A toks N/A _MakeFormatTokenList N/A N/A N/A token DOT . N/A N/A token VBAR | N/A uwl N/A N/A unwrapped_line UnwrappedLine 20 toks N/A N/A N/A self assertEqual 20 N/A uwl depth N/A N/A N/A self assertEqual N/A DOT VBAR N/A N/A tok name N/A tok N/A uwl tokens N/A testFirstLast N/A N/A self N/A N/A N/A toks N/A _MakeFormatTokenList N/A N/A N/A token DOT . N/A N/A token LPAR ( N/A N/A token VBAR | N/A uwl N/A N/A unwrapped_line UnwrappedLine 20 toks N/A N/A N/A self assertEqual 20 N/A uwl depth N/A N/A N/A self assertEqual DOT N/A N/A uwl first name N/A N/A N/A self assertEqual VBAR N/A N/A uwl last name N/A testAsCode N/A N/A self N/A N/A N/A toks N/A _MakeFormatTokenList N/A N/A N/A token DOT . N/A N/A token LPAR ( N/A N/A token VBAR | N/A uwl N/A N/A unwrapped_line UnwrappedLine 2 toks N/A N/A N/A self assertEqual     . ( | N/A N/A uwl AsCode N/A testAppendToken N/A N/A self N/A N/A N/A uwl N/A N/A unwrapped_line UnwrappedLine 0 N/A N/A N/A uwl AppendToken N/A _MakeFormatTokenLeaf N/A token LPAR ( N/A N/A N/A uwl AppendToken N/A _MakeFormatTokenLeaf N/A token RPAR ) N/A N/A N/A self assertEqual N/A LPAR RPAR N/A N/A tok name N/A tok N/A uwl tokens N/A testAppendNode N/A N/A self N/A N/A N/A uwl N/A N/A unwrapped_line UnwrappedLine 0 N/A N/A N/A uwl AppendNode N/A N/A pytree Leaf N/A token LPAR ( N/A N/A N/A uwl AppendNode N/A N/A pytree Leaf N/A token RPAR ) N/A N/A N/A self assertEqual N/A LPAR RPAR N/A N/A tok name N/A tok N/A uwl tokens N/A N/A UnwrappedLineFormattingInformationTest N/A N/A unittest TestCase N/A _ParseAndUnwrap N/A N/A self code N/A N/A N/A tree N/A N/A pytree_utils ParseCodeToTree code N/A N/A N/A comment_splicer SpliceComments tree N/A N/A N/A subtype_assigner AssignSubtypes tree N/A N/A N/A split_penalty ComputeSplitPenalties tree N/A uwlines N/A N/A pytree_unwrapper UnwrapPyTree tree N/A N/A i uwline N/A enumerate uwlines N/A N/A N/A uwlines N/A i N/A N/A unwrapped_line UnwrappedLine N/A uwline depth N/A ft N/A ft N/A uwline tokens N/A N/A ft name N/A pytree_utils NONSEMANTIC_TOKENS N/A uwlines N/A testFuncDef N/A N/A self N/A N/A N/A code N/A N/A textwrap dedent 
      def f(a, b):
        pass
       N/A uwlines N/A N/A self _ParseAndUnwrap code N/A N/A N/A N/A uwlines N/A 0 CalculateFormattingInformation N/A f N/A N/A N/A uwlines N/A 0 tokens N/A 1 N/A N/A N/A self assertFalse N/A f can_break_before N/A N/A N/A self assertFalse N/A f must_break_before N/A N/A N/A self assertEqual N/A f split_penalty N/A split_penalty UNBREAKABLE N/A lparen N/A N/A N/A uwlines N/A 0 tokens N/A 2 N/A N/A N/A self assertFalse N/A lparen can_break_before N/A N/A N/A self assertFalse N/A lparen must_break_before N/A N/A N/A self assertEqual N/A lparen split_penalty N/A split_penalty UNBREAKABLE N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main