User Tools

Site Tools


python_protocols

Differences

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

Link to this comparison view

Last revision Both sides next revision
python_protocols [2021/03/19 13:53]
luciano created
python_protocols [2021/04/20 15:03]
luciano
Line 12: Line 12:
  
 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]]:
  
python_protocols.txt · Last modified: 2021/04/20 15:08 by luciano