Skip to content

Python 3.14: Pydantic v1 compatibility layer triggers UserWarning #271

@johnnymetz

Description

@johnnymetz

Background

When using the pipedream package on Python 3.14, the following warning appears at import time:

.../python3.14/site-packages/pipedream/core/pydantic_utilities.py:13: UserWarning: Core Pydantic V1 functionality isn't compatible with Python 3.14 or greater.
  from pydantic.v1.datetime_parse import parse_date as parse_date

The SDK is using Pydantic’s v1 compatibility layer (pydantic.v1):

from pydantic.v1.datetime_parse import parse_date as parse_date
from pydantic.v1.datetime_parse import parse_datetime as parse_datetime
from pydantic.v1.fields import ModelField as ModelField
from pydantic.v1.json import ENCODERS_BY_TYPE as encoders_by_type # type: ignore[attr-defined]
from pydantic.v1.typing import get_args as get_args
from pydantic.v1.typing import get_origin as get_origin
from pydantic.v1.typing import is_literal_type as is_literal_type
from pydantic.v1.typing import is_union as is_union

Pydantic has deprecated this on Python 3.14+, and it may be unreliable or break in future Python/Pydantic versions.

Environment:

  • Python 3.14
  • Pipedream SDK version: 1.1.3

Acceptance Criteria

Migrate to Pydantic v2-only APIs (no pydantic.v1 imports) so the SDK works cleanly on Python 3.14+.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions