From 8f4e18cb2bd38d6eb37cad7be5166fadcb01401b Mon Sep 17 00:00:00 2001 From: RGBCube <78925721+RGBCube@users.noreply.github.com> Date: Sun, 26 Jun 2022 17:28:01 +0300 Subject: [PATCH] Rename it to generate --- tools/unschema/parser.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/unschema/parser.py b/tools/unschema/parser.py index 3a9df92..b60c07c 100644 --- a/tools/unschema/parser.py +++ b/tools/unschema/parser.py @@ -120,7 +120,9 @@ def generate( typed_dict = [f"class {obj_title}(TypedDict{total}):"] for key, value in obj_properties.items(): - extras, param_annotation = generate(value, title=key.capitalize(), no_comments=no_comments) + extras, param_annotation = generate( + value, title=key.capitalize(), no_comments=no_comments + ) result.append(extras) if key not in obj.get("required", []):