amorphitec / opengb

3d printer controller with touchscreen interface and websocket API
http://opengb.readthedocs.org/
Other
12 stars 4 forks source link

Convert Sphinx docstrings to mypy #15

Open amorphic opened 7 years ago

amorphic commented 7 years ago

Sphinx now supports Python 3 type annotations via an extension.

Update all opengb functions + methods with type annotations and then remove the excess type lines in the docstrings to reduce line count. This won't introduce new features or fix bugs but will make the codebase easier to maintain.

Note: As opengb is Py3 only we can adopt this without breaking backwards compatibility.