Skip to content
Snippets Groups Projects
Commit c2062ba5 authored by Florian Spreckelsen's avatar Florian Spreckelsen
Browse files

Merge branch 'f-146-make-highlevelapi-warning-filterable' into 'dev'

Use logging.warning for high_level_api experimental warning

See merge request !180
parents c9201b12 1ad1ef16
Branches dev
No related tags found
1 merge request!180Use logging.warning for high_level_api experimental warning
Pipeline #62189 passed with warnings
......@@ -26,11 +26,12 @@
# type: ignore
"""
A high level API for accessing LinkAhead entities from within python.
This module is experimental, and may be changed or removed in the future.
This is refactored from apiutils.
"""
import warnings
import logging
from dataclasses import dataclass, fields
from datetime import datetime
from typing import Any, Dict, List, Optional, Union
......@@ -44,7 +45,10 @@ from .common.datatype import (BOOLEAN, DATETIME, DOUBLE, FILE, INTEGER,
REFERENCE, TEXT, get_list_datatype,
is_list_datatype, is_reference)
warnings.warn("""EXPERIMENTAL! The high_level_api module is experimental and may be changed or
logger = logging.getLogger(__name__)
logger.warning("""EXPERIMENTAL! The high_level_api module is experimental and may be changed or
removed in the future. Its purpose is to give an impression on how the Python client user interface
might be changed.""")
......
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