Skip to content

Pyright 1.1.407 linting too strict for Pydantic dataclasses #190

@DiamondJoseph

Description

@DiamondJoseph

Updating from Pydantic 2.11.9 to 2.12.4 causes linting failures for blueapi on constructing a ScanSpec.

/home/runner/work/blueapi/blueapi/tests/system_tests/test_blueapi_system.py:447:29 - error: Operator "*" not supported for types "PydanticDataclass" and "PydanticDataclass" (reportOperatorIssue)

The docs, examples, code and tests of ScanSpec will probably have the same issue.

Acceptance Criteria

  • ScanSpec is compatible with Pydantic 2.12

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