From 0af919397a1907f8c68a57cec571de7355425061 Mon Sep 17 00:00:00 2001
From: Daniel <d.hornung@indiscale.com>
Date: Mon, 30 Oct 2023 18:17:06 +0100
Subject: [PATCH] MAINT: Making typing compatible with Python 3.8

---
 src/caosadvancedtools/json_schema_exporter.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/caosadvancedtools/json_schema_exporter.py b/src/caosadvancedtools/json_schema_exporter.py
index cfe17dba..4f331585 100644
--- a/src/caosadvancedtools/json_schema_exporter.py
+++ b/src/caosadvancedtools/json_schema_exporter.py
@@ -22,7 +22,7 @@
 """Module for converting a data model into a json schema compatible dictionary.
 """
 
-from typing import Any, Optional
+from typing import Any, List, Optional
 
 import linkahead as db
 from linkahead.common.datatype import get_list_datatype, is_list_datatype
@@ -36,7 +36,7 @@ class JsonSchemaExporter:
                  name_and_description_in_properties: bool = False,
                  additional_options_for_text_props: dict = None,
                  units_in_description: bool = True,
-                 do_not_create: list[str] = None,
+                 do_not_create: List[str] = None,
                  ):
         """Set up a JsonSchemaExporter, which can then be applied on RecordTypes.
 
@@ -272,7 +272,7 @@ def recordtype_to_json_schema(rt: db.RecordType, additional_properties: bool = T
                               name_and_description_in_properties: bool = False,
                               additional_options_for_text_props: Optional[dict] = None,
                               units_in_description: bool = True,
-                              do_not_create: list[str] = None):
+                              do_not_create: List[str] = None):
     """Create a jsonschema from a given RecordType that can be used, e.g., to
     validate a json specifying a record of the given type.
 
-- 
GitLab