The Sourcegraph Podcast cover image

Samuel Colvin, Founder and Lead Maintainer of Pydantic

The Sourcegraph Podcast

00:00

How to Use Base Model in Pidantic

With Pidantic, most people use it by extending this like base model class that allows you to describe the type that you want. With pedantic V2, we still have models, we still support data classes, etc., but there's no pedantic model at the base of validation. We have composable validators, so you could validate a single int or string with no overhead. Now we'll have full support for type decks, which are a new type in Python and somewhat like an interface in TypeScript.

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