mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-21 00:40:01 +02:00
15 lines
474 B
Python
15 lines
474 B
Python
from loguru import logger
|
|
|
|
|
|
def warn_if_instance_class_does_not_inherit_from_DataService(__value: object) -> None:
|
|
base_class_name = __value.__class__.__base__.__name__
|
|
module_name = __value.__class__.__module__
|
|
|
|
if module_name not in ["builtins", "__builtin__"] and base_class_name not in [
|
|
"DataService",
|
|
"list",
|
|
]:
|
|
logger.warning(
|
|
f"Warning: Class {type(__value).__name__} does not inherit from DataService."
|
|
)
|