Skip to content

Commit f05a3e1

Browse files
committed
fix(Generate): tyep hint
1 parent f21e53a commit f05a3e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generate_schemas.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function return_json_schema(directoryPath, folder_path, projectName) {
117117
jsonTypes.join("\n");
118118
pythonContent = pythonContent.replace(
119119
/@dataclass\nclass (\w+)(?:\s*\([^)]*\))?\s*:/g,
120-
"@dataclass\nclass $1(DataClassJsonMixin):\n def __post_init__(self):\n print(self, flush=True)\n"
120+
"@dataclass\nclass $1(DataClassJsonMixin):\n def __post_init__(self) -> None:\n print(self, flush=True)\n"
121121
);
122122
const pythonFile = path.join(folder.path, filename + ".py");
123123
const initFile = path.join(folder.path, "__init__.py");

0 commit comments

Comments
 (0)