Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python: fix pydantic deprecation warnings (osrd_schemas) #5698

Merged
merged 1 commit into from
Nov 16, 2023

Conversation

shenriotpro
Copy link
Contributor

@shenriotpro shenriotpro commented Nov 15, 2023

"osrd_schemas/rolling_stock.py:31: PydanticDeprecatedSince20: pydantic.config.Extra is deprecated, use literal values instead (e.g. extra='allow'). Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.1.1/migration/
class RollingResistance(BaseModel, extra=Extra.forbid):"

@shenriotpro shenriotpro force-pushed the shenriot-pydantic-warnings branch from 907e2ad to 4ff001c Compare November 15, 2023 16:14
@shenriotpro shenriotpro marked this pull request as ready for review November 15, 2023 16:17
@shenriotpro shenriotpro requested a review from a team as a code owner November 15, 2023 16:17
Copy link
Contributor

@flomonster flomonster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shenriotpro shenriotpro added this pull request to the merge queue Nov 16, 2023
Merged via the queue into dev with commit a7b6ae0 Nov 16, 2023
@shenriotpro shenriotpro deleted the shenriot-pydantic-warnings branch November 16, 2023 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants