New submission from Josh Holland <anowlcalledj...@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@python components: Documentation messages: 349366 nosy: anowlcalledjosh, docs@python priority: normal severity: normal status: open title: typing module: empty tuple syntax is undocumented type: enhancement _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue37814> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com