Skip to content

Commit

Permalink
⬆️ Upgrade to pydantic v2
Browse files Browse the repository at this point in the history
  • Loading branch information
falexwolf committed Jul 23, 2024
1 parent ea86a49 commit 5080aaf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions nbproject/dev/_meta_store.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from pathlib import Path
from typing import List, Mapping, Optional, Union

from pydantic import BaseModel, Extra
from pydantic import BaseModel, ConfigDict

from nbproject._logger import logger

Expand Down Expand Up @@ -61,9 +61,7 @@ class MetaContainer(BaseModel):
"""User ID from lamindb."""
user_name: Optional[str] = None
"""User name from lamindb."""

class Config:
extra = Extra.allow
model_config = ConfigDict(extra="allow")


class MetaStore:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
]
dependencies = [
"pydantic<2.0.0",
"pydantic>=2.0.0",
"pyyaml",
"packaging",
"orjson",
Expand Down

0 comments on commit 5080aaf

Please sign in to comment.