Sept. 13, 2023, 12:10 p.m. | Lucy Linder

DEV Community dev.to

Not long ago, I came across a bug in one of my projects that highlighted very interesting changes in how Python handles type hints at runtime.


This made me dig into the future of type annotations, and what it means for libraries manipulating type hints at runtime. Spoiler alert: It has to do with PEP 563.



  • The bug


  • A brief history of type hints


    • Basics of type hints



  • Introducing PEP 563, or what lies behind future annotations

  • The explanation …

alert annotations future libraries programming projects python todayilearned type

Software Engineer for AI Training Data (School Specific)

@ G2i Inc | Remote

Software Engineer for AI Training Data (Python)

@ G2i Inc | Remote

Software Engineer for AI Training Data (Tier 2)

@ G2i Inc | Remote

Data Engineer

@ Lemon.io | Remote: Europe, LATAM, Canada, UK, Asia, Oceania

Artificial Intelligence – Bioinformatic Expert

@ University of Texas Medical Branch | Galveston, TX

Lead Developer (AI)

@ Cere Network | San Francisco, US