@@ -649,11 +649,11 @@ def init_stc_container(self, expr, assignment_var):
649
649
----------
650
650
expr : TypedAstNode
651
651
The object representing the container being printed (e.g., PythonList, PythonSet).
652
-
652
+
653
653
assignment_var : Assign
654
- The assignment node where the Python container (rhs) is being initialized
654
+ The assignment node where the Python container (rhs) is being initialized
655
655
and saved into a variable (lhs).
656
-
656
+
657
657
Returns
658
658
-------
659
659
str
@@ -676,7 +676,7 @@ def rename_imported_methods(self, expr):
676
676
Rename class methods from user-defined imports.
677
677
678
678
This function is responsible for renaming methods of classes from
679
- the imported modules, ensuring that the names are correct
679
+ the imported modules, ensuring that the names are correct
680
680
by prefixing them with their class names.
681
681
682
682
Parameters
@@ -1186,6 +1186,8 @@ def formatted_args_to_printf(args_format, args, end):
1186
1186
file = expr .file )],
1187
1187
unravelled = True )
1188
1188
code += self ._print (body )
1189
+ elif isinstance (f , LiteralString ):
1190
+ args_format .append (f .python_value )
1189
1191
else :
1190
1192
arg_format , arg = self .get_print_format_and_arg (f )
1191
1193
args_format .append (arg_format )
@@ -2683,4 +2685,3 @@ def indent_code(self, code):
2683
2685
pretty .append ("%s%s" % (tab * level , line ))
2684
2686
level += increase [n ]
2685
2687
return pretty
2686
-
0 commit comments