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
Copy file name to clipboardExpand all lines: source/Releases/Release-Kilted-Kaiju.rst
+36-1
Original file line number
Diff line number
Diff line change
@@ -93,7 +93,42 @@ See https://github.com/ros2/rclcpp/pull/2759 for more details.
93
93
Static Type Checking
94
94
""""""""""""""""""""
95
95
96
-
Static type checking improvements to ensure that user application is using variables and functions correctly.
96
+
Added static type hints to ``ActionClient`` and ``ActionServer``.
97
+
98
+
See https://github.com/ros2/rclpy/pull/1349 for more details.
99
+
100
+
Add support for `generics <https://typing.python.org/en/latest/reference/generics.html>`_ in ``pub/sub/client/server/actions``, ``Future/Task``, and ``Parameter``.
101
+
102
+
``Publisher``, ``Subscription``, ``Server``, ``Task``, and ``Parameter`` should need no updates to add support for generics.
103
+
104
+
``Client`` will need to be updated to resemble the following to get the improved type checking.
``Future`` will need to be updated to resemble the following to get the improved type checking.
122
+
123
+
.. code-block:: python
124
+
125
+
log_msgs_future: Future[bool] = Future()
126
+
127
+
See https://github.com/ros2/rclpy/pull/1239, https://github.com/ros2/rclpy/pull/1275, https://github.com/ros2/rclpy/pull/1246, and https://github.com/ros2/rclpy/pull/1254/files for more details.
128
+
129
+
Various other small improvements and corrections have also been made throughout all of ``rclpy``.
130
+
131
+
Python types can be statically checked using `ament_mypy <https://github.com/ament/ament_lint/tree/kilted/ament_mypy>`_ which wraps `mypy <https://www.mypy-lang.org/>`_.
0 commit comments