summaryrefslogtreecommitdiff
path: root/Doc/library/typing.rst
blob: c94bea120d5a07fb6404b8cd2ac41c75f61aa207 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
:mod:`typing` --- Support for type hints
========================================

.. module:: typing
   :synopsis: Support for type hints (see PEP 484).

**Source code:** :source:`Lib/typing.py`

--------------

This module supports type hints as specified by :pep:`484`.  The most
fundamental support consists of the type :class:`Any`, :class:`Union`,
:class:`Tuple`, :class:`Callable`, :class:`TypeVar`, and
:class:`Generic`.  For full specification please see :pep:`484`.  For
a simplified introduction to type hints see :pep:`483`.