The Real Python Podcast cover image

Discussing Type Hints, Protocols, and Ducks in Python

The Real Python Podcast

00:00

Piton With Statstatic Typing

Piton is not a typeless language, but people need to understand types. Piton allows you to and types in a more intuitive way before you actually need to formalize them. Basic uses of typing are easy her k. But if you want flexibility, then you should annotate your arguments with abstract classes or protocs. To return at the return take of a function usually should be very specific,. Not an abstract class, for instance, and usually not a prodocal either. If you use something that is too high leveltoo narrow, which is usually very narrow, then the user can't do much with result.

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