Skip to content

Commit 227d87f

Browse files
committed
[BACKEND] Less string casting behind the scenes
1 parent a097c6a commit 227d87f

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/ytdl_sub/utils/script.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,8 @@ def _to_script_argument(cls, value: Any) -> Argument:
8787
ast = parse(text=value).ast
8888
if len(ast) == 1:
8989
return ast[0]
90-
return BuiltInFunction(
91-
name="concat", args=[BuiltInFunction(name="string", args=[arg]) for arg in ast]
92-
)
90+
91+
return BuiltInFunction(name="concat", args=ast)
9392
if isinstance(value, bool):
9493
return Boolean(value)
9594
if isinstance(value, int):

0 commit comments

Comments
 (0)