Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Type Annotations in Python 3 - Whats, Whys & Wows!

EuroPython Conference via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore type annotations in Python 3 through this EuroPython 2017 conference talk. Discover the history, motivation, and basic syntax of type hints, and learn how they can enhance code security and functionality without affecting runtime behavior. Delve into popular libraries like mypy for code analysis, and gain insights on building custom extensions using the type hint system. Examine real-world examples, including a comparison of different approaches and an exploration of contracts in Python. Walk away with a solid understanding of type hints and their potential applications in your Python projects.

Syllabus

Intro
Outline
Motivation: When We Discover Bugs
The Python Way: Gradual Typing
History of Type Hints in Python
Annotation Syntax in Python
Architecture of Type Hinting in Python
Example Code Base: Flor
A Test Script
Adding Type Hints
I broke mypy!
Comparing Our Approaches
Pros & Cons
Top Python Repositories with Type Hints
Example: Contracts in Python

Taught by

EuroPython Conference

Reviews

Start your review of Type Annotations in Python 3 - Whats, Whys & Wows!

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.