User Tools

Site Tools


python_protocols

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
python_protocols [2021/03/19 13:53]
luciano created
python_protocols [2021/04/20 15:08] (current)
luciano [The Typing Map]
Line 13: Line 13:
 This talk is for software developers who know the basics of type hints, but who may be struggling to annotate functions that are as flexible as built-ins like ''​sorted''​—which accepts sequences of items of any existing or future type, as long as the items are comparable. Intermediate typing concepts like **overload**,​ **generics** and **typevars** will be explained as solutions to problems are presented. With this knowledge, participants will be able to create flexible and correctly annotated APIs, unconstrained by rigid type hierarchies. This talk is for software developers who know the basics of type hints, but who may be struggling to annotate functions that are as flexible as built-ins like ''​sorted''​—which accepts sequences of items of any existing or future type, as long as the items are comparable. Intermediate typing concepts like **overload**,​ **generics** and **typevars** will be explained as solutions to problems are presented. With this knowledge, participants will be able to create flexible and correctly annotated APIs, unconstrained by rigid type hierarchies.
  
 +===== The Typing Map =====
 +
 +As part of this talk, I will explain this figure from [[https://​learning.oreilly.com/​library/​view/​fluent-python-2nd/​9781492056348/​|Fluent Python, 2nd edition]]:
 +
 +
 +{{ :​thetypingmap.png?​direct&​600 |}}
python_protocols.1616187226.txt.gz · Last modified: 2021/03/19 13:53 by luciano