The Real Python Podcast cover image

Discussing Type Hints, Protocols, and Ducks in Python

The Real Python Podcast

00:00

Using a Protokoll to Support Less Than Protoco

There are 14 different methods or functions in the standard library that used the supports less than a supports less than protoco. The one example where the typint was to rlax was the with the max signature. It's very flexible, because you can pass a single itable or number of arguments. And then there's also default e argument in the case of the max signature with the iterble. I've thought, paten to lots of people, nobody ever complained about max. But the thing is, it's super hard to annotate, ye.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app