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

⬆️ Upgrade to pydantic v2 #284

Merged
merged 1 commit into from
Jul 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading