Skip to content

Commit

Permalink
πŸ” Print, split f-string vars
Browse files Browse the repository at this point in the history
  • Loading branch information
shroominic committed Nov 20, 2023
1 parent 451d047 commit 96ae69b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion funcchain/chain/prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def extract_fstring_vars(template: str) -> list[str]:
Function to extract f-string variables from a string.
"""
return [
field_name
print("field_name:", field_name) or field_name.split(".")[0]
for _, field_name, _, _ in Formatter().parse(template)
if field_name is not None
]
Expand Down

0 comments on commit 96ae69b

Please sign in to comment.