~/talk

Python's Types: 5 Amazing Ways Python Type Hints Will Supercharge Your Code

Talkat PyBay 2023 · on Sunday, 2023-10-08· [typescript, python]
slides:none on file

Overview of practical typing wins: shows editor-driven PyCharm project analysis that runs type checks across many files, demonstrates beartype runtime checks (on/off via a lightweight decorator) with measured overhead ~20ms on a heavy loop, uses Protocols to get static duck typing without changing class hierarchies, highlights Pydantic/FastAPI and a JSON-to-Pydantic generator, mentions Beanie powering ~10 TB/month of JSON through Pydantic, and suggests MessageSpec as a much faster Pydantic-like alternative.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 1:26Python typing basics
  3. 9:51No types vs typed code
  4. 14:04Five amazing type features
  5. 16:12Editor type inspection
  6. 20:08Bear type runtime checks
  7. 29:20Static duck typing with protocols
  8. 35:19Pydantic JSON parsing
  9. 39:06Monkey type and message spec
  10. 41:37Closing and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.