~/talk

Gradual Typing in Python

Talkat PyCon AU 2017 · 2017-08-03..08-08· [typescript, developer-experience]
slides:none on file

History of function annotations and PEP 484 leads to the typing module and three main checkers: mypy, PyCharm and Google’s PyType; stub files live in typeshed as .pyi. Real project experience: a 20,000-line Python 2 codebase reaches 60% annotation coverage using type comments, finds refactor bugs (changed call signatures) and improves IDE completions, but SQLAlchemy and metaclass-heavy modules remain untypable and require hacks like typing.TYPE_CHECKING and forward-reference strings.

AI-written summary · about

  1. 0:00Introduction
  2. 1:02Types
  3. 4:01History
  4. 8:16Code
  5. 16:24Real World
  6. 16:41Context
  7. 20:02Questions
~/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.