Skip to content

Commit

Permalink
[develop < T0034-GA] Add Field to models (#122)
Browse files Browse the repository at this point in the history
* Add Field to models

* Remove Field from gqlalchemy init
  • Loading branch information
katarinasupe authored May 20, 2022
1 parent 479e137 commit 082ca9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion gqlalchemy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
Node,
Path,
Relationship,
Field,
)
from .disk_storage import SQLitePropertyDatabase # noqa F401
from .query_builder import ( # noqa F401
Expand All @@ -47,7 +48,7 @@
)

from .exceptions import GQLAlchemyWarning, GQLAlchemyError # noqa F401
from pydantic import Field, validator # noqa F401
from pydantic import validator # noqa F401
import warnings

warnings.filterwarnings("once", category=GQLAlchemyWarning)
Expand Down
2 changes: 1 addition & 1 deletion gqlalchemy/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from collections import defaultdict
from dataclasses import dataclass
from typing import Any, Dict, List, Iterable, Optional, Set, Tuple, Union
from pydantic import BaseModel, PrivateAttr, Extra
from pydantic import BaseModel, PrivateAttr, Extra, Field # noqa F401

from .exceptions import (
GQLAlchemyError,
Expand Down

0 comments on commit 082ca9a

Please sign in to comment.