Adding type annotations to existing code
Details
This will be our first in-person get-together in a while!
What to expect:
- Short intro with a chance for advertising Python-related events and open positions (5 min)
- "Lessons Learned"-talk about adding type annotations to an existing code-base (20 min)
- Open discussion about tools, frameworks, libraries that can help with or make use of typing (open ended)
About the talk:
When adding type annotations to an existing code base you will end up dialing with code from a person who had no interest in making that easy (most likely your past self).
After a very brief intro about what types and type hints are I'll dive into adding them to a minimal project without any serialization framework and a strong requirement on not adding any runtime cost.
This includes an overview about common tools to make typing easier, like dataclasses, NamedTuple, TypedDict, pydantic models.
At the end we will be able to add a fully documented REST-API to the project with just a four or five lines of code using FastAPI.
After that everyone is invited to share their experience with typing leading to the social get together part of the meetup.


