Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the annotation for non trivial sequence (#20)
Before this PR, unbounded sequences of non trivial types (e.g. `std_msgs/Header[]`) would be annotated as `Sequence[T]` which is not mutable. This would make type-checking fail on code generating such a msg, e.g. ```python def make_header() -> std_msgs.msg.Header: ... my_msg = Mymsg() for i in range(10): my_msg.data.append(make_header()) ``` This fails because there's no `append` method on `Sequence`. By making the type annotation `MutableSequence` the problem goes away.
- Loading branch information