What problem does it solve? Writing Python code that is readable, maintainable, and idiomatic requires consistent application of PEP 8 standards, type hints, and established patterns, which is hard to enforce across writing, reviewing, and refactoring work. ## Core Features & Use Cases - Idiomatic Patterns: Covers EAFP error handling, context managers, comprehensions, generators, decorators, and dataclasses with concrete code examples. - Type Hints & Concurrency: Guides modern type annotations, Protocol-based duck typing, and choosing between threading, multiprocessing, and async/await. - Tooling & Project Layout: Provides pyproject.toml configuration for black, ruff, mypy, and pytest plus standard package structure. - Use Case: When refactoring a legacy module, apply the anti-patterns checklist to replace mutable default arguments, bare except clauses, and string concatenation in loops with correct idioms. ## Quick Start Ask the assistant to review your Python file and refactor it using python-patterns idioms, type hints, and PEP 8 standards.