Skip to content

Commit

Permalink
fix: Change imports for DuplicateDocumentError and DuplicatePolicy as…
Browse files Browse the repository at this point in the history
… per latest changes in haystack
  • Loading branch information
prosto committed Jan 19, 2024
1 parent 0131059 commit 7a1f053
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/neo4j_haystack/document_stores/neo4j_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

import numpy as np
from haystack import Document, default_from_dict, default_to_dict
from haystack.document_stores import DuplicateDocumentError, DuplicatePolicy
from haystack.document_stores.errors import DuplicateDocumentError
from haystack.document_stores.types import DuplicatePolicy
from neo4j.exceptions import DatabaseError
from tqdm import tqdm

Expand Down
2 changes: 1 addition & 1 deletion src/neo4j_haystack/errors.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Optional

from haystack.document_stores import DocumentStoreError
from haystack.document_stores.errors import DocumentStoreError


class Neo4jDocumentStoreError(DocumentStoreError):
Expand Down
3 changes: 2 additions & 1 deletion tests/neo4j_haystack/document_stores/test_ds_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

import pytest
from haystack import Document
from haystack.document_stores import DuplicateDocumentError, DuplicatePolicy
from haystack.document_stores.errors import DuplicateDocumentError
from haystack.document_stores.types import DuplicatePolicy

from neo4j_haystack.client import Neo4jClient, Neo4jClientConfig
from neo4j_haystack.document_stores.neo4j_store import Neo4jDocumentStore
Expand Down

0 comments on commit 7a1f053

Please sign in to comment.