~/talk

Static Typing in Python

Talkat PyColorado 2019 · 2019-09-07..09-08· [python]
slides:none on file

History and concrete rules for adding types to Python show up: function annotations and PEPs (3107, 483, 484, 526) define the PEP 484 typing module, static checkers evolve from research to tools (mypy becomes a standalone checker) and companies adopt them, notably a Dropbox migration of millions of lines at Dropbox, and practical choices matter: run a checker (mypy, pytype and pyre are compared), annotate incrementally, and expect cross-function inference and runtime-lenience differences between checkers.

AI-written summary · about

  1. 0:00Start
  2. 1:17Is Python Dynamically or Statically Typed
  3. 4:44Dynamic Typing in Python
  4. 7:08Examples
  5. 7:43Static Typing
  6. 8:20Typescript
  7. 8:30Dynamically Typed and Statically Typed
  8. 9:51Function Annotations
  9. 14:00Optional Typing
  10. 14:20Gradual Typing
  11. 14:38Variable Annotation
  12. 16:59Generic Types
  13. 17:27Classes and Types
  14. 18:02Custom Classes
  15. 19:48Type Checker
  16. 19:59Static and Dynamic
  17. 21:22Disclaimer
  18. 21:53Cross Function Inference and Runtime Lenience
  19. 23:43Static Typing Is Not a Replacement for Unit Tests
  20. 24:14When Should You Use Stack Typing
~/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.