Skip to content

Python 3.14 incompatibility due to Pydantic V1 usage #452

@dannyob

Description

@dannyob

The library fails to import on Python 3.14 because it uses from pydantic import v1 as pydantic in resource.py and pagination.py. Pydantic's V1 compatibility layer doesn't support Python 3.14+.

UserWarning: Core Pydantic V1 functionality isn't compatible with Python 3.14 or greater.
  from pydantic import v1 as pydantic  # type: ignore

pydantic.v1.errors.ConfigError: unable to infer type for attribute "previous"

The fix would be migrating to native Pydantic V2 APIs. See pydantic/pydantic#9948 for context on the V1 shim being dropped for 3.14.

Tested with Python 3.14.2, pydantic 2.12.5, replicate 1.0.7.

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