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

[master < T] Pydantic v2 #278

Merged
merged 10 commits into from
Sep 21, 2023
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
2 changes: 1 addition & 1 deletion gqlalchemy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

import warnings

from pydantic import validator # noqa F401
from pydantic.v1 import validator # noqa F401

from gqlalchemy.models import ( # noqa F401
MemgraphConstraintExists,
Expand Down
4 changes: 2 additions & 2 deletions gqlalchemy/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from enum import Enum
from typing import Any, Dict, Iterable, List, Optional, Set, Tuple, Union

from pydantic import BaseModel, Extra, Field, PrivateAttr # noqa F401
from pydantic.v1 import BaseModel, Extra, Field, PrivateAttr # noqa F401

from gqlalchemy.exceptions import (
GQLAlchemyError,
Expand Down Expand Up @@ -302,7 +302,7 @@ def to_cypher(self) -> str:


class GraphObject(BaseModel):
_subtypes_ = dict()
_subtypes_: Dict = dict()

class Config:
extra = Extra.allow
Expand Down
Loading
Loading