Description
Only a DataPoint (subclass of a node) has a subscribe method. This forces the developer to force cast from Node to DataPoint when using the following API:
node: DataPoint = self.Vehicle.getNode(signal_str) # type: ignore
Originally posted by @Chrylo in #126 (comment)
Suggested Solution
- Implement the subscribe method also for the Node class
- If a node (which is not a DataPoint / Signal) is being subscribed too then subscribe to all children
Alternatives
No response
Additional Context
No response
Description
Only a DataPoint (subclass of a node) has a subscribe method. This forces the developer to force cast from Node to DataPoint when using the following API:
node: DataPoint = self.Vehicle.getNode(signal_str) # type: ignoreOriginally posted by @Chrylo in #126 (comment)
Suggested Solution
Alternatives
No response
Additional Context
No response