Python Type System

Guides advanced Python type system usage: generic types with TypeVar, Protocol for structural subtyping, ParamSpec for decorator typing, TypeVarTuple for variadic generics, runtime vs static type checking tradeoffs, and py.typed marker for library distribution. Use when the user asks about Python generics, TypeVar, Protocol, ParamSpec, overload decorators, type narrowing, or distributing typed Python libraries. Do NOT use when the user asks about basic type annotations (use `python-idioms`), data validation (use `python-data-modeling`), or project setup (use `python-project-setup`).

FerroxLabs 8d1ed83 2 files · 40.6 KB Updated 37 repo stars

File contents

ferroxlabs/murage/tree/main/skills-library/python-type-system commit 8d1ed833e0

Frequently asked questions

npx skillmds@latest add ferroxlabs/python-type-system