colcon / colcon-cargo

An extension for colcon-core to support Rust projects built with Cargo
http://colcon.readthedocs.io
Apache License 2.0
30 stars 20 forks source link

Use mypy annotations #9

Open bergercookie opened 3 years ago

bergercookie commented 3 years ago

Since colcon packages mandate Pytyhon 3.5 or higher, we can use explicit mypy annotations to document function parameters and output types instead of docstrings. I'm also removing the docstrings for the types since sphinx can parse and create documentation for mypy types.

Current PR also includes: Fix KeyError exception when dependencies Cargo key is not found (it's tightly coupled with the change in mypy types - hence I can't make a separate PR for it.