~/talk

Taming the Duck with Type Hints

Talkat PyCon AU 2023 · 2023-08-18..08-22· [python, typescript]
links:none on file
slides:none on file

Type hints are a noninvasive way to get compiler-like checks: static tools like mypy read annotations, use the typeshed stubs, and flag wrong operations, changing-variable errors and illegal writes to Final. Editors surface those checks as you type. Structural typing via protocols lets duck typing coexist with checkers. The runtime ignores hints so behaviour doesn’t change, but gradual adoption reveals many real bugs early — the ecosystem evolves fast (about 30 PEPs in eight years).

AI-written summary · about

  1. 0:00Start
  2. 0:19OVERVIEW
  3. 4:50TYPES OF TYPES - DYNAMIC, DUCK AND STATIC
  4. 25:00ARE TYPE HINTS WORTH IT?
  5. 29:56REFERENCES
~/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.