~/talk

Type Hints for Python 3.5

Talkat EuroPython 2015 · 2015-07-20..07-26· [python, typescript]
links:none on file
slides:none on file

PEP 484 defines optional type hints and is accepted into Python 3.5 beta 1; a pure-Python typing module implements names like Any, Union and Optional and is marked provisional. Type checking runs separately from the interpreter so execution cost is unchanged. Stubs (.pyi) let C extensions and third-party packages supply annotations without changing source. The design supports gradual typing, generic types, forward references and will work with external type checkers.

AI-written summary · about

  1. 0:00Start
  2. 0:09Type Hints
  3. 1:58Function Annotation Syntax
  4. 5:07Static Type Checking Is Not a Function of the Python Interpreter
  5. 6:28Function Annotations
  6. 11:33Additional Documentation
  7. 12:13C Extensions
  8. 13:54Stub Files
  9. 28:13What Is Gradual Typing
  10. 34:10Generic Types
  11. 34:31Union Type
  12. 35:08Tuple
  13. 36:42Generic Functions
  14. 37:07Type Variable
~/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.