PEP 544
lastmod 2024-09-25created 2024-09-243 edits
Protocols: Structural subtyping (static duck typing)
| WARNING |
| The canonical typing specification is maintained on the typing specs site. Runtime typing behavior is described in the CPython documentation for Python:typing#Protocol. |