Tuesday 19 October 2021

Pydantic: Constrained types

Constrained functions are used to restrict the values of numerous common types.

 

Following constrained types are supported by Pydantic.

a.   conlist

b.   conset

c.    conint

d.   confloat

e.   condecimal

f.     constr

g.   conbytes

 

 

 

Previous                                                    Next                                                    Home

No comments:

Post a Comment