-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
better type system based on py3 type hints #3
Comments
typing is supported for python 2.7 and mypy can be used for checking types (could be integrated with catkin_pip) |
Note there is two distinct topics here :
|
Another (complementary ?) option : https://andreacensi.github.io/contracts/ |
pycontracts seems to be lacking quite a few features, especially when comparing with hypothesis... Not sure what should be done here to improve/solidify this... maybe generating a type checker for python from a more rigorously typed language like idris ? Anyway it seems to be quite distinct from defining messages for pyros : We want to give python a nice type system that can :
This will help overall stability for our distributed system. |
Python3 is now in progress in #14 |
We should take inspiration from python3 type hints and https://www.python.org/dev/peps/pep-0483/
It would make things more solid, and would also provide simple python3 compatibility.
The type checker would operate at runtime, with the types providing a "contract" regarding the message structure and content.
Later we might want to extend it to provide contracts for complex node behaviors...
The text was updated successfully, but these errors were encountered: