Guide Python type annotations using the typing module: Protocol, TypeVar, ParamSpec, Generic, Literal, TypeAlias, overload, and dataclass field typing. Use when the user writes Python type hints, asks about typing, creates generic classes, defines protocols, or works with mypy/pyright. Trigger when you see untyped Python code that should be typed.
The exact command may vary by repository. Check the README on GitHub.
For the skill author
Drop this on your repo README
Shows your skill is listed on Skillteca, generates a backlink and trackable traffic.
[](https://www.skillteca.com.br/skills/type-hints-guide?utm_source=badge&utm_medium=readme&utm_campaign=badge)
One short email with only the new DevOps e Infra skills. 4 minutes of reading, no spam, unsubscribe with one click.
You confirm your email on the first send. No spam. Unsubscribe with one click.
Python Type Hints Guide
Write precise, expressive type annotations that catch bugs at static analysis time.
Modern Python typing (3.10+) is powerful enough to express complex relationships
without runtime overhead.
When to Use
User writes or refactors Python functions without type hints
User asks about typing, generics, or protocols
User encounters mypy or pyright errors
User builds libraries or APIs that need clear contracts
User works with complex data structures or callbacks
[Description truncada. Veja o README completo no GitHub.]