Skip to content

Commit 280ffee

Browse files
refactor: replace Union with modern syntax and remove unused method call
Co-authored-by: aider (openai/z-ai/glm-5.2) <aider@aider.chat>
1 parent c525c9b commit 280ffee

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/llm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def add_response_to_json(self, field: str, value: str):
132132
parsed_value = value
133133

134134
if ";" in value:
135-
parsed_value = self.handle_plural_values(value)
135+
pass
136136
if field in self._json.keys():
137137
self._json[field].append(parsed_value)
138138
else:

src/main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from typing import Union
21
import os
32

43
os.environ["CUDA_VISIBLE_DEVICES"] = ""
@@ -25,7 +24,7 @@ def input_fields(num_fields: int):
2524
fields.append(field)
2625
return fields
2726

28-
def run_pdf_fill_process(user_input: str, definitions: list, pdf_form_path: Union[str, os.PathLike]):
27+
def run_pdf_fill_process(user_input: str, definitions: list, pdf_form_path: str | os.PathLike):
2928
"""
3029
This function is called by the frontend server.
3130
It receives the raw data, runs the PDF filling logic,

0 commit comments

Comments
 (0)