Overview
This course on static typing in Python aims to explore the advantages and disadvantages of a static type system, introduce optional "type hints" in Python, and discuss tools to assist in adding types to Python code. The course covers topics such as dynamic vs static typing, examples of static typing, type hints, type checkers, and philosophical differences. The teaching method involves a talk format with a duration of 28 minutes. The intended audience for this course includes Python programmers interested in understanding and implementing static typing in Python.
Syllabus
Intro
Overview
Types
Dynamic Type
Any Type
Duct Typing
Static Typing Examples
Dynamic vs Static Typing
Static Typing at Dropbox
PEP3107
MyPi
Pet 483
Generic Types
Type hints
Type checkers
Philosophical differences
Questions
When to use static typing
Unit tests vs static typing
When should you use static typing
Before migrating or refactoring
Using static typing
Summary
Audience Questions
Taught by
EuroPython Conference