From ab1e2c4e983216eb1bd38e4c018ab3771e2f7c77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jind=C5=99ich=20B=C3=A4r?= Date: Fri, 1 Nov 2024 10:59:02 +0100 Subject: [PATCH] chore: refactoring Co-authored-by: Jan Buchar --- website/parse_types.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/website/parse_types.py b/website/parse_types.py index e021305e1..e7e547ac4 100644 --- a/website/parse_types.py +++ b/website/parse_types.py @@ -66,9 +66,7 @@ def parse_expression(ast_node, full_expression): with open(typedoc_types_path, "r") as f: typedoc_out = {} - expressions = f.read() - - expressions = json.loads(expressions) + expressions = json.load(f) for expression in expressions: try: