Py Types

Python type system advisor. Always use this skill when working with Python type hints, mypy, Protocol, TypedDict, dataclasses, or generics. Use when the user asks "how do I type this in Python", "mypy is complaining", "should I use TypedDict or dataclass", "how do I type a dict", "what's Optional", "how do I make a generic class", "Protocol vs ABC vs TypedDict", "how do I annotate a function that returns X or Y", or "how do I avoid Any". Read this skill before answering any Python type annotation question.

AllThingsSmitty Updated

File contents

AllThingsSmitty/agent-skills/tree/main/skills/py-types commit 4f18a373d1

Frequently asked questions

npx skillmds@latest add allthingssmitty/py-types