mirror of
https://github.com/tiqi-group/pydase.git
synced 2026-02-14 06:18:41 +01:00
updates tests for is_property_attribute
This commit is contained in:
@@ -170,7 +170,9 @@ def get_data_service_class_reference() -> Any:
|
||||
def is_property_attribute(target_obj: Any, access_path: str) -> bool:
|
||||
path_parts = parse_full_access_path(access_path)
|
||||
target_obj = get_object_by_path_parts(target_obj, path_parts[:-1])
|
||||
# TODO: check if target_obj is dict or list
|
||||
|
||||
# don't have to check if target_obj is dict or list as their content cannot be
|
||||
# properties -> always return False then
|
||||
return isinstance(getattr(type(target_obj), path_parts[-1], None), property)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user