tiqi-group / pydase

A Python library for creating remote control interfaces of Python objects.
https://pydase.readthedocs.io
MIT License
2 stars 1 forks source link

Feat: improves DataService inheritance warning #80

Closed mosmuell closed 11 months ago

mosmuell commented 11 months ago

When setting a public attribute in a DataService instance, pydase will check if the value is observable. I.e., when the value is an instance of a user-defined class, the class should inherit from DataService or Observable. Built-in values like strings, ints, float, bools and alike are observable as are set through the __setattr__ method of the containing DataService class.

This PR simplifies the logic of the check and moves that code into the DataService class.