Skip to content

Pydantic DeprecationWarning when using pulser-pasqal #211

@MatthieuMoreau0

Description

@MatthieuMoreau0

Looks like pydantic has deprecated accessing model_fields from instance.

PydanticDeprecatedSince211: Accessing the 'model_fields' attribute on the instance is deprecated. Instead, you should access this attribute from the model class. Deprecated in Pydantic V2.11 to be removed in V3.0.
 batch_model_fields = [*list(updated_batch.model_fields), "_ordered_jobs"]

Update _ordered_jobs attribute logic accordingly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions