# Python

> Write idiomatic, type-safe Python: errors as values (Result/typed errors) and composing them, par…

Write idiomatic, type-safe Python: errors as values (Result/typed errors) and composing them, parse-don't-validate with pydantic, frozen kw-only dataclass value objects, unions with match and assert_never (structural pattern matching), Protocol vs ABC ports, persistence-ignorant domain models, package layout, import discipline and circular imports, config parsed once at a composition root that is a scope (DI/bootstrap), structured concurrency with asyncio task groups and retries, smart constructors, which interpreter and library versions to target, basedpyright, and the Any/cast/type-ignore discipline. Use when designing or reviewing Python specifically. Routing: architecture for agnostic design, mechanical-enforcement for lint and type-checker config, testing for test strategy.

- Page: https://ss33.ai/skills/connorads/python-22104746080
- Publisher: connorads
- Category: [Software Development](https://ss33.ai/skills/category/software-development-t44z8z) › [Languages & frameworks](https://ss33.ai/skills/category/software-development-t44z8z/languages-and-frameworks-rgvrso)
- Source: https://github.com/connorads/dotfiles/blob/a99bce6ffc926729f81191a8f8ff6c9ab5697881/skills/python/SKILL.md

## Skill

This skill's licence does not allow redistribution, so the store does not serve its text. Get it from the author: https://github.com/connorads/dotfiles/blob/a99bce6ffc926729f81191a8f8ff6c9ab5697881/skills/python/SKILL.md
