~/talk

Static Typing in Python

Talkat DjangoCon US 2019 · 2019-09-22..09-27· [python, typescript]
slides:none on file

Python remains dynamically typed but can be annotated to be statically checked using the typing module and optional type hints; history hits PEP 3107 484 and 526 and tools like mypy pytype and other type checker backends emerge. Dropbox reports millions of lines that benefit from typing, typeshed supplies external stubs, and gradual typing lets teams annotate hot spots, catch cross-function and container-type errors before runtime, and speed refactors without changing program behavior.

AI-written summary · about

  1. 0:00Introduction
  2. 1:08Overview
  3. 1:44Types
  4. 4:21Function arguments and return types
  5. 6:47Duck typing
  6. 7:39Static languages
  7. 8:42Dynamic languages
  8. 10:16Functions Annotations
  9. 12:00PhD Thesis
  10. 13:32MyPI
  11. 14:36Guiteau
  12. 14:48Optional typing
  13. 15:17Gradual typing
  14. 15:27Variable annotation
  15. 16:13Special type constructs
  16. 16:58Container types
  17. 17:18Generic types
  18. 17:33Types and classes
  19. 18:49Variable Annotations
  20. 19:37Type Checkers
  21. 21:39Cross Function Inference Examples
  22. 22:56Why and When to Use Static Typing
  23. 23:39When to Use Static Typing
  24. 26:07Experiment with Static Typing
  25. 26:39Summary
  26. 27:56QA
~/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.