~/talk

Typing at scale: statically type-checking a large codebase

Talkat PyCon Italia 2024 · 2024-05-22..05-25· [python, typescript]
slides:none on file

Aiven moves a 2015 monorepo with about 200 developers from untyped Python toward static checking using mypy and a progressive-to-strict per-file scheme, then a generated inline-ignore script that lets the team flip to mostly-strict quickly. They hit a moving-target of mypy options and bugs, found any and deserialization break static guarantees (one production incident), augment with runtime guards/Pydantic, and conclude the approach works but needs tooling, conventions, and ongoing maintenance.

AI-written summary · about

  1. 0:00Introduction to static typing
  2. 2:31Starting type annotation effort
  3. 7:28Progressive typing challenges
  4. 12:30Runtime vs compile-time checks
  5. 14:14Solving type-checking problems
  6. 22:09Would we do it again?
  7. 22:59Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.