• Endmaker@ani.social
    link
    fedilink
    English
    arrow-up
    9
    ·
    2 days ago

    Keep it simple, stupid.

    I’d use the built-in dataclass (or something even simpler) where possible. Only when I need more functionalities (e.g. validation) would I switch to using Pydantic model.