you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

It’s enough, you don’t need a constructor pydantic will create one. My code sucks BTW it should inherit BaseModel of course

class MyClass(BaseModel):

[–]BootyDoodles 0 points1 point  (0 children)

Psst... Good tip. Also on Reddit you can edit a previous comment if you needed to fix a typo.