Docstrings, comments & types

Writing documentation that lives in the code: docstring conventions from PEP 257, comments that help the next reader, and type hints from PEP 484 onwards.