~/talk

Duck Typing Is For The Birds

Talkat PyOhio 2018 · 2018-07-28..07-29· [python]
slides:none on file

Introduces practical static typing for Python with concrete code: annotated variables and functions, a distance example that fails when passed strings, and tools that actually catch errors. Demonstrates MonkeyType auto-generates annotations by using sys.setprofile to record calls into a SQLite DB and applying stubs via retype. Runs both mypy and Pyre, notes mypy is more consistent and has ~1,600 dependent projects while Pyre is faster but flaky and OS-limited. Recommends starting small, using IDE plugins, and enforcing checks in CI.

AI-written summary · about

  1. 0:00Introduction
  2. 1:09What is static typing
  3. 3:39What is dynamic typing
  4. 6:54Static typing examples
  5. 8:27Coding examples
  6. 13:22Pyre example
  7. 14:53Pyre error suppression
  8. 17:27mypi
  9. 18:12monkeytype
  10. 20:00howmonkeytype works
  11. 21:14how to get started
~/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.