rosidl_python
rosidl_python copied to clipboard
Add Python generator support for deprecated interface fields
Adds support for the @deprecated IDL annotation in the Python generator rosidl_generator_py.
When a message field is annotated with @deprecated, the generated Python class will:
- Emit a DeprecationWarning (via PEP 702
typing_extensions.deprecated) when the field is accessed or set via the public property - Suppress the warning in internal operations (
__eq__,__repr__, C extension type conversion) to avoid false positives
Depends on: ros2/rosidl#945
Signed-off-by: Pengkun-ZHU [email protected]
We're quite close to feature freeze for ROS 2 Lyrical. Any chance we can re-target this to M-Turtle?
Yeah this is fine for m turtle.