Contents

typing 3.10.0.0

0

Type Hints for Python

Type Hints for Python

Stars: 1591, Watchers: 1591, Forks: 233, Open Issues: 160

The python/typing repo was created 10 years ago and the last code push was Yesterday.
The project is very popular with an impressive 1591 github stars!

How to Install typing

You can install typing using pip

pip install typing

or add it to a project with poetry

poetry add typing

Package Details

Author
Guido van Rossum, Jukka Lehtosalo, Łukasz Langa, Ivan Levkivskyi
License
PSF
Homepage
https://docs.python.org/3/library/typing.html
PyPi:
https://pypi.org/project/typing/
GitHub Repo:
https://github.com/python/typing

Classifiers

  • Software Development
No  typing  pypi packages just yet.

Errors

A list of common typing errors.

Code Examples

Here are some typing code examples and snippets.

GitHub Issues

The typing package has 160 open issues on GitHub

  • Should we add links to existing resources?
  • Idea: safe and unsafe strings
  • TypingError: type checker will emit error with a message specified in typing stubs
  • Annotate function which return a specific module (e.g. -> Literal[np])
  • ParamSpec: bound, covariant, contravariant
  • Add a note about modules that should not be included into stubs
  • ParamSpec: No support for adding keyword-only argument
  • Drop Python 3.6 in typing_extensions
  • ParamSpec: Allow only P.args
  • TypeGuard type narrowing on returning False
  • TypedDict alternative definition syntax with keyword args is confusing
  • PEP 646 implementation
  • Change PEP 647 to allow for narrowing in the negative case
  • Should there be a Numeric type?
  • Introduce a Not type

See more issues on GitHub

Related Packages & Articles