-
Notifications
You must be signed in to change notification settings - Fork 4
Python 3.14: Pydantic v1 compatibility layer triggers UserWarning #271
Copy link
Copy link
Open
Description
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):
pipedream-sdk-python/src/pipedream/core/pydantic_utilities.py
Lines 13 to 20 in ad1ac69
| 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+.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels