Skip to content

= instead of : in type hints - failing Pydantic 2 #32301

@Iceazy

Description

@Iceazy

Apache Airflow version

2.6.2

What happened

airflow doesn't work correct UPDATE: with Pydantic 2 released on 30th of June UPDATE:, raises
pydantic.errors.PydanticUserError: A non-annotated attribute was detected: dag_id = <class 'str'>. All model fields require a type annotation; if dag_idis not meant to be a field, you may be able to resolve this error by annotating it as aClassVaror updatingmodel_config['ignored_types'].

What you think should happen instead

No response

How to reproduce

just install apache-airflow and run airflow db init

Operating System

Ubuntu 22.04.2 LTS

Versions of Apache Airflow Providers

No response

Deployment

Official Apache Airflow Helm Chart

Deployment details

No response

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:corekind:bugThis is a clearly a bugneeds-triagelabel for new issues that we didn't triage yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions