Skip to content

Commit 31a5265

Browse files
committed
fixing mypy
1 parent def7aa8 commit 31a5265

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

backend/tests/unit/onyx/indexing/test_postgres_sanitization.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from pytest import MonkeyPatch
2+
13
from onyx.access.models import ExternalAccess
24
from onyx.connectors.models import BasicExpertInfo
35
from onyx.connectors.models import Document
@@ -87,7 +89,9 @@ def test_sanitize_hierarchy_node_for_postgres_removes_nul_bytes() -> None:
8789
assert sanitized.external_access.external_user_group_ids == {"g-1"}
8890

8991

90-
def test_index_doc_batch_prepare_sanitizes_before_db_ops(monkeypatch: object) -> None:
92+
def test_index_doc_batch_prepare_sanitizes_before_db_ops(
93+
monkeypatch: MonkeyPatch,
94+
) -> None:
9195
document = Document(
9296
id="doc\x00id",
9397
source=DocumentSource.FILE,

0 commit comments

Comments
 (0)