~/talk

Python Types for Fun and Profit

Talkat PyCon US 2022 · 2022-04-27..05-03· [typescript, python]
links:none on file
name:Jia Chen
links:none on file
slides:none on file

Claims that static typing catches bugs early and scales to real codebases, and the session shows how with pyre plus inference and MonkeyType you can annotate, run a checker, and put it in CI. Demonstrations use a demo repo, watchman for fast incremental checks, and pyre infer to bulk-add annotations; Instagram’s effort spans millions of lines and reaches 99% coverage in examples. Outcomes: faster edits (errors surface in seconds), fewer runtime surprises, and usable editor/PR integrations.

AI-written summary · about

  1. 0:00Start
  2. 1:56What Are Types Why Do You Need Type Checking
  3. 15:32Example of a Typed Function
  4. 16:11Star Args
  5. 19:38Attributes
  6. 24:41Dictionaries
  7. 25:37Recursive Aliases
  8. 29:30Recap
  9. 33:53Exercises
  10. 41:28Runtime Type Checker
  11. 44:59Reveal Type
  12. 48:20Exercise with Classes
  13. 1:00:37Annotate Functions
  14. 1:01:51Dictionaries and Tuples
  15. 1:18:01Install the Type Checker
  16. 1:20:42Run the Type Checker on Your Machine for the First Time
  17. 1:22:20Pyre Init
  18. 2:03:52Gradual Typing
  19. 2:04:04Type Annotations in Python Are Always Optional
  20. 2:05:55Gradual Type System
  21. 2:16:38Automatic Type Inference
  22. 2:17:15Coverage Visibility
~/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.