Prefer an explicit contract over a raw dict. Use a frozen dataclass when the result is an immutable value object with behavior or stable attributes; use TypedDict when the boundary is intentionally mapping-shaped or JSON-like. Either gives type checking and documented fields, whereas raw dict leaves the contract implicit.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Python Language?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/hoangnguyen0403-python-language)
Prefer an explicit contract over a raw dict. Use a frozen dataclass when the result is an immutable value object with behavior or stable attributes; use TypedDict when the boundary is intentionally mapping-shaped or JSON-like. Either gives type checking and documented fields, whereas raw dict leaves the contract implicit.