Python Bytes cover image

#303 This title is required or is it optional?

Python Bytes

00:00

Python Types

You can have a thing that explicitly says this type is optional, but it's a required parameter. The fast API recommendation is to use union insteadoptional. And I think I've finally gotten there that I think I prefer, just the either union or if you're in the bar thing, so you can say type or like type bar none.

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