Module Import alias ImportFrom alias alias alias alias alias alias alias alias alias alias ImportFrom alias FunctionDef arguments args defaults body Assign NameStore Call NameLoad Str TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad Num Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad Num Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Str Assert Call AttributeLoad Call AttributeLoad NameLoad attr attr Assert Call AttributeLoad Call AttributeLoad NameLoad attr attr Assert UnaryOpNot Call AttributeLoad Call AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad TupleLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Str Assert Call AttributeLoad Call AttributeLoad NameLoad attr attr Assert Call AttributeLoad Call AttributeLoad NameLoad attr attr Assert Call AttributeLoad Call AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assert Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num NameLoad Assert Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assert Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num NameLoad Assert Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assert UnaryOpNot Call AttributeLoad Call AttributeLoad NameLoad attr attr Assert CompareEq SubscriptLoad Call AttributeLoad NameLoad attr Index Num ListLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword Num Assert Call AttributeLoad Call AttributeLoad NameLoad attr attr Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword Str Assert Call AttributeLoad Call AttributeLoad NameLoad attr attr Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad Num decorator_list FunctionDef arguments args defaults body ClassDef bases NameLoad body Assign NameStore Call NameLoad TupleLoad NameLoad NameLoad Assign NameStore NameLoad decorator_list Assign NameStore Call NameLoad keyword Num keyword Str Assert Call AttributeLoad Call AttributeLoad NameLoad attr attr Assert CompareEq Call AttributeLoad Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num attr attr Call NameLoad Num Assign NameStore Call NameLoad keyword Str keyword Str Assert UnaryOpNot Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num Assert CompareEq NameLoad ListLoad Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assert Call AttributeLoad Call AttributeLoad NameLoad attr attr Assert CompareEq Call AttributeLoad Call AttributeLoad NameLoad attr attr Call NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assert Call AttributeLoad Call AttributeLoad NameLoad attr attr Assert CompareEq Call AttributeLoad Call AttributeLoad NameLoad attr attr Call NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assert UnaryOpNot Call AttributeLoad Call AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args defaults body ClassDef bases NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore Call NameLoad ListLoad NameLoad NameLoad Assign NameStore NameLoad decorator_list Assign NameStore Call NameLoad keyword Num keyword Str Assert Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad keyword Call NameLoad keyword Str keyword Num keyword Str Assert Call AttributeLoad Call AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args defaults body Expr Str ClassDef bases NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore Call NameLoad ListLoad NameLoad NameLoad Assign NameStore NameLoad decorator_list Assign NameStore Call NameLoad keyword Call NameLoad keyword Str keyword Num keyword Str Assert Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assert CompareEq NameLoad Dict Str Str Str Dict Str Str Str Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Str TupleLoad Str Str Str Assign NameStore Call NameLoad Str TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad Str Assert Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num NameLoad Assert Call NameLoad SubscriptLoad Call AttributeLoad Call NameLoad Str attr Index Num NameLoad decorator_list FunctionDef arguments args defaults body Expr Str ClassDef bases NameLoad body Assign NameStore NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore Call NameLoad Call NameLoad Str ListLoad NameLoad NameLoad Num Assign NameStore NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad decorator_list Assign NameStore Call NameLoad keyword Str Assert Call AttributeLoad NameLoad attr Assert CompareEq Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Str Str Assign NameStore Call NameLoad keyword Call NameLoad Assert Call AttributeLoad NameLoad attr Assert CompareEq Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Str Str Dict Str Num Str Assign NameStore Call NameLoad keyword Call NameLoad keyword Num keyword Num Assert Call AttributeLoad NameLoad attr Assert CompareEq Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Str Str Dict Str Str Num Num Str Assign NameStore Call NameLoad keyword Call NameLoad keyword Call NameLoad keyword Str keyword Num Assert Call AttributeLoad NameLoad attr Assert CompareEq Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Str Str Dict Str Str Dict Str Str Num Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad ListLoad NameLoad Call NameLoad NameLoad Assign NameStore Call NameLoad ListLoad Num Num Num Assert Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Str Assert Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad ListLoad Num Num Str Assert UnaryOpNot Call AttributeLoad Call AttributeLoad NameLoad attr attr Assert Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr keyword Num attr attr decorator_list FunctionDef arguments args defaults body ClassDef bases NameLoad body Assign NameStore NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore Call NameLoad Call NameLoad Str ListLoad NameLoad NameLoad Num Assign NameStore NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad decorator_list Assign NameStore Call NameLoad ListLoad NameLoad Call NameLoad NameLoad Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad ListLoad Num Num Num Assert CompareEq Call NameLoad NameLoad Str Assert CompareEq Call NameLoad NameLoad Str decorator_list FunctionDef arguments args defaults body ClassDef bases NameLoad body Assign NameStore Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore Call NameLoad NameLoad decorator_list Assign NameStore Call NameLoad Str TupleLoad NameLoad NameLoad ClassDef bases NameLoad body Assign NameStore Call NameLoad ListLoad NameLoad Call NameLoad NameLoad decorator_list Assign NameStore Call NameLoad keyword ListLoad Call NameLoad keyword Str Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad Dict Str TupleLoad Call NameLoad Dict Str Str decorator_list
N/A N/A json pystachio Choice Default Enum Float Integer List Ref Required String Struct pystachio.naming frozendict test_choice_type N/A N/A N/A N/A N/A IntStr N/A Choice IntStrFloat N/A Integer String N/A one N/A IntStr 123 N/A two N/A IntStr 123 N/A three N/A IntStr abc N/A N/A N/A N/A one unwrap N/A Integer 123 N/A N/A N/A N/A two unwrap N/A Integer 123 N/A N/A N/A N/A three unwrap N/A String abc N/A test_choice_error N/A N/A N/A N/A N/A IntFloat N/A Choice N/A Integer Float N/A one N/A IntFloat 123 N/A two N/A IntFloat 123.456 N/A three N/A IntFloat 123.abc N/A N/A N/A N/A N/A one check ok N/A N/A N/A N/A N/A two check ok N/A N/A N/A N/A N/A N/A three check ok N/A test_choice_triple N/A N/A N/A N/A N/A Triple N/A Choice N/A Integer Float String N/A one N/A Triple 123 N/A two N/A Triple 123.456 N/A three N/A Triple 123.abc N/A N/A N/A N/A N/A one check ok N/A N/A N/A N/A N/A two check ok N/A N/A N/A N/A N/A three check ok N/A test_choice_interpolation N/A N/A N/A N/A N/A IntFloat N/A Choice N/A Integer Float N/A one N/A IntFloat {{abc}} N/A two N/A IntFloat {{a}}{{b}} N/A one_int N/A N/A one bind abc 34 N/A N/A isinstance N/A N/A N/A one_int interpolate N/A 0 Integer N/A N/A N/A N/A N/A one_int check ok N/A one_fl N/A N/A one bind abc 123.354 N/A N/A isinstance N/A N/A N/A one_fl interpolate N/A 0 Float N/A N/A N/A N/A N/A one_fl check ok N/A one_str N/A N/A one bind abc def N/A N/A N/A N/A N/A N/A one_str check ok N/A N/A N/A N/A N/A two interpolate N/A 1 N/A N/A N/A Ref from_address a N/A N/A Ref from_address b N/A two_one N/A N/A two bind a 12 b 23 N/A N/A N/A N/A N/A two_one check ok N/A N/A N/A N/A two_one unwrap N/A Integer 1223 N/A two_two N/A N/A two bind a 12 b .34 N/A N/A N/A N/A N/A two_two check ok N/A N/A N/A N/A two_two unwrap N/A Float 12.34 N/A test_choice_in_struct N/A N/A N/A N/A SOne N/A Struct N/A N/A a N/A Choice N/A Integer Float N/A b String N/A N/A one N/A SOne a 12 b abc N/A N/A N/A N/A N/A one check ok N/A N/A N/A N/A N/A N/A N/A N/A N/A one interpolate N/A 0 a unwrap N/A Integer 12 N/A two N/A SOne a 1{{q}}2 b hi there N/A N/A N/A N/A N/A N/A two check ok N/A refs N/A N/A N/A two interpolate N/A 1 N/A N/A refs N/A N/A N/A Ref from_address q N/A two_int N/A N/A two bind q 34 N/A N/A N/A N/A N/A two_int check ok N/A N/A N/A N/A N/A N/A two_int a unwrap N/A Integer 1342 N/A two_fl N/A N/A two bind q 3.4 N/A N/A N/A N/A N/A two_fl check ok N/A N/A N/A N/A N/A N/A two_fl a unwrap N/A Float 13.42 N/A two_str N/A N/A two bind q abc N/A N/A N/A N/A N/A N/A two_str check ok N/A test_struct_in_choice_in_struct N/A N/A N/A N/A Foo N/A Struct N/A N/A a String N/A b Integer N/A Yuck N/A Struct N/A N/A one N/A Choice N/A Foo Integer N/A two String N/A N/A y N/A Yuck one 3 two abc N/A N/A N/A N/A N/A y check ok N/A z N/A Yuck one N/A Foo a 1 b 2 two hello N/A N/A N/A N/A N/A z check ok N/A test_json_choice N/A N/A N/A N/A N/A Make sure that serializing to JSON works for structs with choices. Foo N/A Struct N/A N/A a String N/A b Integer N/A Yuck N/A Struct N/A N/A one N/A Choice N/A Foo Integer N/A two String N/A N/A z N/A Yuck one N/A Foo a 1 b 2 two hello N/A N/A N/A N/A N/A z check ok N/A d N/A N/A json loads N/A N/A z json_dumps N/A N/A d N/A two one hello N/A a b 1 2 N/A test_choice_string_enum N/A N/A N/A N/A N/A TestEnum N/A Enum TestEnum N/A A B C N/A TestChoice N/A Choice TestChoice N/A TestEnum String N/A v N/A TestChoice A N/A N/A isinstance N/A N/A N/A v interpolate N/A 0 TestEnum N/A N/A isinstance N/A N/A N/A N/A TestChoice Q interpolate N/A 0 String N/A test_choice_default N/A N/A N/A N/A N/A Ensure that choices with a default work correctly. Dumb N/A Struct N/A N/A one String N/A ChoiceDefaultStruct N/A Struct N/A N/A a N/A Default N/A Choice IntOrDumb N/A Dumb Integer 28 N/A b Integer N/A OtherStruct N/A Struct N/A N/A first ChoiceDefaultStruct N/A second String N/A N/A v N/A OtherStruct second hello N/A N/A N/A v check N/A N/A N/A N/A json loads N/A N/A v json_dumps N/A second hello N/A w N/A v first N/A ChoiceDefaultStruct N/A N/A N/A w check N/A N/A N/A N/A json loads N/A N/A w json_dumps N/A first second N/A a 28 hello N/A x N/A v first N/A ChoiceDefaultStruct a 296 b 36 N/A N/A N/A x check N/A N/A N/A N/A json loads N/A N/A x json_dumps N/A first second N/A a b 296 36 hello N/A y N/A v first N/A ChoiceDefaultStruct a N/A Dumb one Oops b 37 N/A N/A N/A y check N/A N/A N/A N/A json loads N/A N/A y json_dumps N/A first second N/A a b N/A one Oops 37 hello N/A test_choice_primlist N/A N/A N/A N/A N/A Test that choices with a list value work correctly. N/A C N/A Choice N/A String N/A List Integer N/A c N/A C N/A 1 2 3 N/A N/A N/A N/A N/A c check ok N/A c N/A C hello N/A N/A N/A N/A N/A c check ok N/A c N/A C N/A 1 2 {{x}} N/A N/A N/A N/A N/A N/A c check ok N/A N/A N/A N/A N/A N/A N/A c bind x 3 check ok N/A test_repr N/A N/A N/A N/A Dumb N/A Struct N/A N/A one String N/A ChoiceDefaultStruct N/A Struct N/A N/A a N/A Default N/A Choice IntOrDumb N/A Dumb Integer 28 N/A b Integer N/A OtherStruct N/A Struct N/A N/A first ChoiceDefaultStruct N/A second String N/A N/A C N/A Choice N/A String N/A List Integer N/A testvalone N/A C hello N/A testvaltwo N/A C N/A 1 2 3 N/A N/A N/A repr testvalone Choice_String_IntegerList('hello') N/A N/A N/A repr testvaltwo Choice_String_IntegerList([1, 2, 3]) N/A test_get_choice_in_struct N/A N/A N/A N/A Foo N/A Struct N/A N/A foo N/A Required String N/A Bar N/A Struct N/A N/A bar N/A Required String N/A N/A Item N/A Choice Item N/A Foo Bar Qux N/A Struct N/A N/A item N/A Choice N/A String N/A List Item N/A N/A b N/A Qux item N/A N/A Foo foo fubar N/A N/A N/A N/A b get N/A frozendict N/A item N/A N/A frozendict N/A foo fubar N/A