~/talk

Mind the gap! Why static typing requires more than just adding annotations

Talkat PyCon US 2026 · 2026-05-13..05-19· [python, developer-experience]
name:Jia Chen
links:none on file
links:none on file
slides:none on file

Shows concrete limits and concrete fixes: type checkers struggle with metaclasses, heterogeneous containers, flow-sensitive narrowing and duck typing but support TypedDict, Protocols, Pydantic validation and TypeVarTuple experiments; PyreFly reaches PyreFly v1 and internal AI code mods auto-fix about 70% automated fixes of preexisting type errors in one study; recommends wrap the boundary—leave dynamic core untouched, validate inputs and outputs with typed wrappers—gives tradeoffs, numbers (e.g., NumPy 33%→88%, 89% regular typing use) and practical refactor paths.

AI-written summary · about

  1. 0:00Static typing challenges
  2. 2:19Untyped Python patterns
  3. 7:14Type system limitations
  4. 9:01Partially initialized classes
  5. 11:28Duck typing limits
  6. 15:25Cost-benefit of types
  7. 19:00When not to add types
  8. 20:26Typed boundaries for dynamic code
  9. 23:54Python type system future
  10. 26:22Summary
~/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.