[docs] [issue31024] typing.Tuple is class but is defined as data inside https://docs.python.org/3.6/objects.inv

Ivan Levkivskyi report at bugs.python.org
Tue Aug 22 18:24:55 EDT 2017


Ivan Levkivskyi added the comment:

> For the end user the fact that this is a class is still hidden

I am not sure what you mean by this, but with your PR the rendered docs will literally say ``class typing.Tuple``.

> We should probably add a unit test that makes sure all runtime "type" matches with documentation "type" in the future

I already mention, this was not an omission but a deliberate decision, see http://bugs.python.org/review/28644/diff/19105/Doc/library/typing.rst#newcode444 (and below the same for Callable)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue31024>
_______________________________________


More information about the docs mailing list