Files
pydantic-demo/models/address.py
2025-08-21 14:31:47 +02:00

10 lines
154 B
Python

from __future__ import annotations
from pydantic import BaseModel
class Address(BaseModel):
street: str
house_number: int | str
city: str