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 ofList[T](Python 3.9+)dict[K, V]instead ofDict[K, V]|for unions instead ofUnion(Python 3.10+)