Skip to content
Snippets Groups Projects
Verified Commit ef005f5b authored by Daniel Hornung's avatar Daniel Hornung
Browse files

FIX: Py-3.7 compatibility.

parent 5ce16db9
No related branches found
No related tags found
4 merge requests!100WIP: Filling XLSX: Seems to be working.,!94ENH: add framework for converting json schema into table templates,!93Filling XLSX: Everything except multiple choice.,!92ENH: xlsx template generator
Pipeline #48138 passed
......@@ -25,7 +25,7 @@ This module allows to generate template tables from JSON schemas.
import re
from abc import ABC, abstractmethod
from enum import Enum
from typing import Dict, Optional, Tuple
from typing import Dict, List, Optional, Tuple
from openpyxl import Workbook
from openpyxl.workbook.child import INVALID_TITLE_REGEX
......@@ -142,7 +142,7 @@ class TableTemplateGenerator(ABC):
return keys
raise ValueError(msg)
def _treat_schema_element(self, schema: dict, sheets: dict, path: list[str],
def _treat_schema_element(self, schema: dict, sheets: dict, path: List[str],
foreign_keys: Optional[dict] = None, level_in_sheet_name: int = 1,
array_paths: Optional[list] = None
) -> Dict[str, Tuple[ColumnType, Optional[str], list]]:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment