<div dir="ltr">Recently we switched to using Google style docstrings. I was looking through the docs and saw that it supported type hinting (see function_with_types_in_docstring vs function_with_pep484_type_annotations):<div><div><br></div><div><a href="http://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html">http://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html</a><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><br></div><div>Unless I am mistaken, declaring functions using type hinting seems like no extra effort than declaring types in our docstring. I am wondering now might be a good time to consider using type hinting given that Pulp 3 is still fairly new?</div><div><br></div><div><div>For more information about type hinting, check out PEP484:</div><div><br></div><div><a href="https://www.python.org/dev/peps/pep-0484/">https://www.python.org/dev/peps/pep-0484/</a></div></div><div><br></div><div>One concern I have about type hinting though is its newness. It’s only been around since Python 3.5 which also means Pulp 3 would have to require 3.5+. And it doesn’t look like there are many tools that leverage type hinting currently.</div><div><br></div><div>Thoughts?</div><div><br></div><div>David<br></div></div></div></div></div></div></div></div>
</div></div></div>