Ran Zvi
I'm a software engineer currently living in USA. I enjoy learning new languages and learning about them.
Session
07-13
14:35
30min
Protocols - Static duck typing for decoupled code
Ran Zvi
Python introduces Protocols to support static duck typing, where static type checkers (mypy) and other tools can verify code correctness prior to runtime.
This was added in order to circumvent explicitly inheriting from ABCs (Abstract base classes) which is "unpythonic and unlike what one would normally do in idiomatic dynamically typed Python code" - according to PEP 544.
We will explore the different use cases for Protocols and how to use them correctly.
Python Libraries
Liffey B