~/talk

Type-checked Python in the real world

Talkat PyCon 2018 · on Sunday, 2018-05-13· [developer-experience, python]

Type annotations catch whole classes of bugs, remove guesswork about what functions accept and return, and let tests focus on logic rather than type space. The path shows gradual typing module by module, runtime traces to infer realistic signatures, and generating stub files to describe compiled or dynamic pieces. Examples report annotating a million‑LOC codebase incrementally, measuring error counts, and preventing regressions via CI so annotated modules stay clean.

AI-written summary · about

  1. 0:00Intro
  2. 1:50"Items"?
  3. 7:18Running Mypy
  4. 8:07Type Inference
  5. 9:18Variable Annotation
  6. 10:28Union
  7. 11:00Optional
  8. 12:16Function Overloads
  9. 13:31Generic Functions
  10. 15:51Where's my duck?
  11. 19:33Any
  12. 20:03cast
  13. 21:08ignore
  14. 21:40stub (pyi) files
  15. 23:43The Plan
  16. 27:49Using Monkeytype
~/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.