Logo
Explore Help
Sign In
john/prompts
Watch 1
Star 0
Fork 0
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
4f05f13e45ad0da75f8bf039699b534e0054180e
prompts/docs/skills/python-typing/references/index.md
T
John Lancaster 4f05f13e45 better typing
2026-06-21 15:41:22 -05:00

2.2 KiB
Raw Blame History

Python Typing Source Map

Use this page as the canonical source index when making typing modernization recommendations.

Core Language and Library Docs

  • Typing module documentation
  • Typing specification (typing.python.org)
  • Built-in types and generic aliases
  • Python language reference: match statement
  • PEP 634: Structural Pattern Matching specification
  • typing.cast reference (runtime no-op)
  • Typing spec directives for cast()
  • Mypy type narrowing and casts guidance
  • Typing guide: exhaustiveness and assert_never
  • Mypy: Literal/Enum exhaustiveness with match

Tooling References

  • Astral ty documentation
  • Astral ty usage reference (this skill)

Modernization PEPs

  • PEP 585: Type Hinting Generics In Standard Collections
  • PEP 604: Allow writing union types as X | Y
  • PEP 673: Self Type
  • PEP 695: Type Parameter Syntax

Advanced Typing PEPs (Load on Demand)

  • PEP 612: Parameter Specification Variables
  • PEP 646: Variadic Generics
  • PEP 647: User-Defined Type Guards
  • PEP 655: Required and NotRequired for TypedDict
  • PEP 742: Narrowing types with TypeIs

Version Gate Reminder

Before recommending syntax upgrades, verify the project's supported Python range and lint target so recommendations match runtime constraints.

Reference in New Issue View Git Blame Copy Permalink
Powered by Gitea Version: 1.27.1 Page: 11ms Template: 1ms
Auto
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API