Open
Description
Looks like recursive types are supported by mypy now: python/mypy#731.
- There's a TODO here:
launch_ros/launch_ros/launch_ros/parameters_type.py
Lines 55 to 57 in 3569f0d
- Update the code to leverage recursive types and remove the TODO.
- There's also a comment below that mentions "(flattened to avoid having a recursive type)," which could therefore probably also be updated, although I'm not quite sure what to do there:
launch_ros/launch_ros/launch_ros/parameters_type.py
Lines 72 to 73 in 3569f0d
- I'm not exactly sure what it refers to. However, for this one, we could probably remove "(flattened to avoid having a recursive type)" from the comment and leave the code as-is.
- Finally, there are a few references to "making/appeasing mypy" in
launch_ros/utilities/normalize_parameters.py
. Perhaps that could be revisited to see if we can simplify it.# type:
comments could also be updated to the more modern type annotations.