Learning the Ropes: Understanding Python Generics

What if you don't want a Cat to be an Animal? What is the Liskov Substitution Principle? And what on earth is contravariance?

20 Jul 2023 Europython 2023, Prague
 python  typing  mypy  variance

In this talk you’ll discover the answers to these questions and more, as we explore the foundations of generic types in Python. By the end, you might even understand the weirder errors that Mypy sometimes throws your way.