You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The target does not need any special new dependency. However, it could make use of any of the many tools that are used to represent JSON types of which Pydantic is the standard.
Most simply though, it could be a function that acts like a recursively defined function on dbus-python types, but is specialized to that particular property or what not. The problem is that it can build the object, but does not define the class, so there is no documentation for the class, the user has to know it based on something. Of course, once the object is available, it is introspectable.
Once you encounter a variant type, though, you just run the function that must deal with variant types.
And, if the mapping in the D-Bus property is actually optional, then so is the attribute, I guess.
The text was updated successfully, but these errors were encountered:
The target does not need any special new dependency. However, it could make use of any of the many tools that are used to represent JSON types of which Pydantic is the standard.
Most simply though, it could be a function that acts like a recursively defined function on dbus-python types, but is specialized to that particular property or what not. The problem is that it can build the object, but does not define the class, so there is no documentation for the class, the user has to know it based on something. Of course, once the object is available, it is introspectable.
Once you encounter a variant type, though, you just run the function that must deal with variant types.
And, if the mapping in the D-Bus property is actually optional, then so is the attribute, I guess.
The text was updated successfully, but these errors were encountered: