Skip to content

Commit a8b2004

Browse files
fix(presidio): suppress mypy arg-type error for presidio cross-package type mismatch
1 parent a363f89 commit a8b2004

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

integrations/presidio/src/haystack_integrations/components/preprocessors/presidio/presidio_document_cleaner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def run(self, documents: list[Document]) -> dict[str, Any]:
8080
entities=self.entities,
8181
score_threshold=self.score_threshold,
8282
)
83-
anonymized = self._anonymizer.anonymize(text=doc.content, analyzer_results=analyzer_results)
83+
anonymized = self._anonymizer.anonymize(text=doc.content, analyzer_results=analyzer_results) # type: ignore[arg-type]
8484
cleaned.append(Document(content=anonymized.text, meta=doc.meta.copy()))
8585
except Exception as e:
8686
logger.warning(

integrations/presidio/src/haystack_integrations/components/preprocessors/presidio/presidio_text_cleaner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def run(self, texts: list[str]) -> dict[str, Any]:
7474
entities=self.entities,
7575
score_threshold=self.score_threshold,
7676
)
77-
anonymized = self._anonymizer.anonymize(text=text, analyzer_results=analyzer_results)
77+
anonymized = self._anonymizer.anonymize(text=text, analyzer_results=analyzer_results) # type: ignore[arg-type]
7878
cleaned.append(anonymized.text)
7979
except Exception as e:
8080
logger.warning(

0 commit comments

Comments
 (0)