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

Lead Developer (AI)

@ Cere Network | San Francisco, US

Research Engineer

@ Allora Labs | Remote

Ecosystem Manager

@ Allora Labs | Remote

Founding AI Engineer, Agents

@ Occam AI | New York

AI Engineer Intern, Agents

@ Occam AI | US

AI Research Scientist

@ Vara | Berlin, Germany and Remote