[Pulp-dev] Type hinting in Pulp 3

David Davis daviddavis at redhat.com
Mon Jun 19 18:55:54 UTC 2017

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


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?

For more information about type hinting, check out PEP484:


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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-dev/attachments/20170619/8b02bbf9/attachment.htm>

More information about the Pulp-dev mailing list