black formatted

This commit is contained in:
PatillaCode
2023-06-15 18:33:52 +02:00
parent 12b280fbbb
commit f4eb1e109f
6 changed files with 38 additions and 41 deletions

View File

@@ -1,7 +1,7 @@
import re
def parse_chat(chat):# -> List[Tuple[str, str]]:
def parse_chat(chat): # -> List[Tuple[str, str]]:
# Get all ``` blocks
regex = r"```(.*?)```"
@@ -15,7 +15,7 @@ def parse_chat(chat):# -> List[Tuple[str, str]]:
code = "\n".join(code)
# Add the file to the list
files.append((path, code))
return files
@@ -24,4 +24,4 @@ def to_files(chat, workspace):
files = parse_chat(chat)
for file_name, file_content in files:
workspace[file_name] = file_content
workspace[file_name] = file_content