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

MNT: Change warnings.warn to logger.warning to enable warning suppression, and...

MNT: Change warnings.warn to logger.warning to enable warning suppression, and add it to the module docstring
parent a17a3198
No related branches found
No related tags found
2 merge requests!189ENH: add convenience functions,!180Use logging.warning for high_level_api experimental warning
Pipeline #61788 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.
Please register or to comment