[docs] [issue37814] typing module: empty tuple syntax is undocumented

Josh Holland report at bugs.python.org
Sat Aug 10 20:36:34 EDT 2019

New submission from Josh Holland <anowlcalledjosh at gmail.com>:

The empty tuple syntax in type annotations, `Tuple[()]`, is not obvious from the examples given in the documentation (I naively expected `Tuple[]` to work); it has been documented in PEP 484[1] and in mypy[2], but not in the documentation for the typing module.

[1]: https://www.python.org/dev/peps/pep-0484/#the-typing-module
[2]: https://github.com/python/mypy/pull/4313

assignee: docs at python
components: Documentation
messages: 349366
nosy: anowlcalledjosh, docs at python
priority: normal
severity: normal
status: open
title: typing module: empty tuple syntax is undocumented
type: enhancement

Python tracker <report at bugs.python.org>

More information about the docs mailing list