From 7e25087df42b89dd417fe232743071c7acc37d04 Mon Sep 17 00:00:00 2001 From: RGBCube <78925721+RGBCube@users.noreply.github.com> Date: Sun, 26 Jun 2022 10:05:18 +0300 Subject: [PATCH] Extend parser (idk how it works) --- tools/unschema/parser.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/unschema/parser.py b/tools/unschema/parser.py index 9f5c4b9..1aee2b7 100644 --- a/tools/unschema/parser.py +++ b/tools/unschema/parser.py @@ -69,7 +69,10 @@ def generate( if len(union_list) == 1: text, target = inner_generate( - union_list[0], _title=_title, _no_examples=_no_examples, _no_formats=_no_formats + union_list[0], + _title=_title, + _no_examples=_no_examples, + _no_formats=_no_formats, ) dependencies.append(text) param_type = f"Optional[{target}]"