typing 3.10.0.0
0
Type Hints for Python
Contents
Type Hints for Python
Stars: 1541, Watchers: 1541, Forks: 221, Open Issues: 158The python/typing
repo was created 9 years ago and the last code push was 4 hours ago.
The project is very popular with an impressive 1541 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
Related Packages
Errors
A list of common typing errors.
Code Examples
Here are some typing
code examples and snippets.
GitHub Issues
The typing package has 158 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