Skip to main content Brad's PyNotes

Posts on Python 3.0

  1. PEP 3107 Function Annotations

    TL;DR

    PEP 3107 introduced syntax for adding metadata to function parameters and return values, stored in __annotations__ - the foundation for modern type hints.