Skip to content

Commit

Permalink
fix: remove deprecated pydantic expression
Browse files Browse the repository at this point in the history
  • Loading branch information
unexcellent committed Nov 12, 2024
1 parent 3f51b48 commit 1f4b995
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions raillabel/json_format/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

from typing import Literal

from pydantic import BaseModel, Extra
from pydantic import BaseModel


class JSONMetadata(BaseModel, extra=Extra.allow):
class JSONMetadata(BaseModel, extra="allow"):
"""Metadata about the annotation file itself."""

schema_version: Literal["1.0.0"]
Expand Down

0 comments on commit 1f4b995

Please sign in to comment.