Skip to content
Snippets Groups Projects
Commit b1d0ec96 authored by I. Nüske's avatar I. Nüske
Browse files

MNT: Suppress high_level_api import warning

parent 3b93d81e
No related branches found
No related tags found
2 merge requests!133Suppress high_level_api import warning,!132Draft: Automatic XLSX export
Pipeline #61787 passed with warnings
This commit is part of merge request !132. Comments created here will be created in the context of that merge request.
...@@ -24,18 +24,24 @@ Utilities for automatically exporting and importing data to and from xlsx. ...@@ -24,18 +24,24 @@ Utilities for automatically exporting and importing data to and from xlsx.
import json import json
import tempfile import tempfile
import warnings import warnings
import logging
from typing import Union from typing import Union
from pathlib import Path from pathlib import Path
import linkahead import linkahead
from linkahead.common.models import Container from linkahead.common.models import Container
from linkahead import execute_query from linkahead import execute_query
from linkahead.high_level_api import convert_to_python_object
from ..json_schema_exporter import JsonSchemaExporter, merge_schemas from ..json_schema_exporter import JsonSchemaExporter, merge_schemas
from .table_generator import XLSXTemplateGenerator from .table_generator import XLSXTemplateGenerator
from .fill_xlsx import fill_template from .fill_xlsx import fill_template
# The high_level_api import would normally warn about the API being
# experimental. We know this, so suppress the warning.
logging.disable(logging.WARNING)
from linkahead.high_level_api import convert_to_python_object
logging.disable(logging.NOTSET)
def _generate_jsonschema_from_recordtypes(recordtypes: list, def _generate_jsonschema_from_recordtypes(recordtypes: list,
out_path: Union[str, Path] = None) -> dict: out_path: Union[str, Path] = None) -> dict:
......
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