Skip to content

In 7-db-agents /agent.py: @dataclass used instead of Pydantic model #10

Description

@dronglobe

The comment and the associated video mentions using # Pydantic model for Customer, however a dataclass decorator was used in the code instead of inheriting from the Pydantic base model. While the code still works, it will not throw validation errors. Codebase can be updated for future learners.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions