### Body

Currently Pydantic 2.0.0 released on 30th of June 2023 breaks Airflow CI - building providers and running Kubernetes tests.

Therefore we limit Pydantic to < 2.0.0 in setup.cfg for now.

This should be fixed, especially that 2.0.0 brings a number of speed improvements.


### Committer

- [X] I acknowledge that I am a maintainer/committer of the Apache Airflow project.
"""Serializable representation of the DagRun ORM SqlAlchemyModel used by internal API."""
    id: int
    dag_id: str
    queued_at: Optional[datetime]
    execution_date: DateTime
    start_date: Optional[datetime]
    end_date: Optional[datetime]
    state: str
    run_id: str
    creating_job_id: Optional[int]
    external_trigger: bool
    run_type: str
    data_interval_start: Optional[datetime]
    data_interval_end: Optional[datetime]
    last_scheduling_decision: Optional[datetime]
    dag_hash: Optional[str]
    updated_at: datetime
    consumed_dataset_events: List[DatasetEventPydantic]
    class Config:
        """Make sure it deals automatically with SQLAlchemy ORM classes."""
        orm_mode = True