python-best-practices

Installation
SKILL.md

Python Best Practices

Type Hints

Always use type hints for function signatures:

def process_data(items: list[dict[str, Any]]) -> dict[str, int]:
    ...

Use:

  • list[T] instead of List[T] (Python 3.9+)
  • dict[K, V] instead of Dict[K, V]
  • | for unions instead of Union (Python 3.10+)

Error Handling

Installs
1
GitHub Stars
7
First Seen
Sep 15, 2026