Gimme a (Type) Hint in Python

1 year ago
7

Types are a core part of understanding how Python works. This Python Frederick presentation introduces Python types (like str, int, float), explains how Python uses types, shows how to use Python type hints to improve your code, then covers a number of examples of showing types and type hints in action for a number of common scenarios.

0:00 - Introduction
0:25 - What are types?
2:20 - Python is dynamically typed!
3:49 - Where are the types?
5:54 - Duck Typing
7:47 - Can I get a hint?
8:16 - Type Hint Anatomy
9:52 - Type Hint Benefits
12:10 - Demo!
15:14 - Basic function example with types
21:45 - variables: scalar, list, dict
26:59 - Optional parameters
32:00 - future annotations
38:31 - The typing module
42:12 - dataclasses
47:48 - Q&A

Loading comments...