Python Best Practices
- Prefer readable, idiomatic Python and PEP 8.
- Use type hints for public APIs and non-trivial functions.
- Avoid mutable default arguments and hidden side effects.
- Prefer
pathlibwhen appropriate and the standard library when it solves the problem cleanly. - Preserve backward compatibility unless breaking changes are explicitly allowed.