Skip to content

Commit 613a00a

Browse files
committed
Enhance robot.model.control.
- Add type hints. Part of #4570. - Make attributes containing normal sequences (i.e. not our custom objects like Tags) explicitly tuples in `__init__`. - Perserve tuples as tuples, instead of converting to lists, also in `to_dict` (related to #3902). That means less work and smaller memory usage. Earlier change to `ModelObject.config` makes sure tuples are preserved over `to_json/from_json` roundtrip. - Use tuples attributes also with `robot.running.model.UserKeyword`. That module will get types and be enhanced in the near future.
1 parent 5719647 commit 613a00a

5 files changed

Lines changed: 137 additions & 120 deletions

File tree

0 commit comments

Comments
 (0)