Skip to content
Snippets Groups Projects

Use logging.warning for high_level_api experimental warning

Merged I. Nüske requested to merge f-146-make-highlevelapi-warning-filterable into dev
1 file
+ 6
2
Compare changes
  • Side-by-side
  • Inline
@@ -26,11 +26,12 @@
@@ -26,11 +26,12 @@
# type: ignore
# type: ignore
"""
"""
A high level API for accessing LinkAhead entities from within python.
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.
This is refactored from apiutils.
"""
"""
import warnings
import logging
from dataclasses import dataclass, fields
from dataclasses import dataclass, fields
from datetime import datetime
from datetime import datetime
from typing import Any, Dict, List, Optional, Union
from typing import Any, Dict, List, Optional, Union
@@ -44,7 +45,10 @@ from .common.datatype import (BOOLEAN, DATETIME, DOUBLE, FILE, INTEGER,
@@ -44,7 +45,10 @@ from .common.datatype import (BOOLEAN, DATETIME, DOUBLE, FILE, INTEGER,
REFERENCE, TEXT, get_list_datatype,
REFERENCE, TEXT, get_list_datatype,
is_list_datatype, is_reference)
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
removed in the future. Its purpose is to give an impression on how the Python client user interface
might be changed.""")
might be changed.""")
Loading