From 68aad22d20a0782e15fdc9f0888a380ebc506be3 Mon Sep 17 00:00:00 2001 From: anakin87 Date: Wed, 11 Dec 2024 18:23:04 +0100 Subject: [PATCH] unused imports --- haystack/components/converters/azure.py | 1 - haystack/components/converters/csv.py | 1 - haystack/components/converters/docx.py | 1 - haystack/components/converters/html.py | 1 - haystack/components/converters/json.py | 1 - haystack/components/converters/markdown.py | 1 - haystack/components/converters/pdfminer.py | 1 - haystack/components/converters/pptx.py | 1 - haystack/components/converters/pypdf.py | 1 - haystack/components/converters/tika.py | 1 - haystack/components/converters/txt.py | 1 - 11 files changed, 11 deletions(-) diff --git a/haystack/components/converters/azure.py b/haystack/components/converters/azure.py index 0d0569f2b6..d55a6b8ac8 100644 --- a/haystack/components/converters/azure.py +++ b/haystack/components/converters/azure.py @@ -5,7 +5,6 @@ import copy import hashlib import os -import warnings from collections import defaultdict from pathlib import Path from typing import Any, Dict, List, Literal, Optional, Union diff --git a/haystack/components/converters/csv.py b/haystack/components/converters/csv.py index 8259f43cf4..248ce69620 100644 --- a/haystack/components/converters/csv.py +++ b/haystack/components/converters/csv.py @@ -4,7 +4,6 @@ import io import os -import warnings from pathlib import Path from typing import Any, Dict, List, Optional, Union diff --git a/haystack/components/converters/docx.py b/haystack/components/converters/docx.py index 54cf9e5867..b9d59bd564 100644 --- a/haystack/components/converters/docx.py +++ b/haystack/components/converters/docx.py @@ -5,7 +5,6 @@ import csv import io import os -import warnings from dataclasses import dataclass from enum import Enum from io import StringIO diff --git a/haystack/components/converters/html.py b/haystack/components/converters/html.py index d4e93aa32a..10509e1fab 100644 --- a/haystack/components/converters/html.py +++ b/haystack/components/converters/html.py @@ -3,7 +3,6 @@ # SPDX-License-Identifier: Apache-2.0 import os -import warnings from pathlib import Path from typing import Any, Dict, List, Optional, Union diff --git a/haystack/components/converters/json.py b/haystack/components/converters/json.py index f7b43aee96..3a8c6f52f0 100644 --- a/haystack/components/converters/json.py +++ b/haystack/components/converters/json.py @@ -4,7 +4,6 @@ import json import os -import warnings from pathlib import Path from typing import Any, Dict, List, Literal, Optional, Set, Tuple, Union diff --git a/haystack/components/converters/markdown.py b/haystack/components/converters/markdown.py index f078d91dad..2ffbe4b745 100644 --- a/haystack/components/converters/markdown.py +++ b/haystack/components/converters/markdown.py @@ -3,7 +3,6 @@ # SPDX-License-Identifier: Apache-2.0 import os -import warnings from pathlib import Path from typing import Any, Dict, List, Optional, Union diff --git a/haystack/components/converters/pdfminer.py b/haystack/components/converters/pdfminer.py index 71b90b760f..8642447816 100644 --- a/haystack/components/converters/pdfminer.py +++ b/haystack/components/converters/pdfminer.py @@ -4,7 +4,6 @@ import io import os -import warnings from pathlib import Path from typing import Any, Dict, List, Optional, Union diff --git a/haystack/components/converters/pptx.py b/haystack/components/converters/pptx.py index c19c2906fe..7282cc5ddb 100644 --- a/haystack/components/converters/pptx.py +++ b/haystack/components/converters/pptx.py @@ -4,7 +4,6 @@ import io import os -import warnings from pathlib import Path from typing import Any, Dict, List, Optional, Union diff --git a/haystack/components/converters/pypdf.py b/haystack/components/converters/pypdf.py index bb24836a78..19a4e2e453 100644 --- a/haystack/components/converters/pypdf.py +++ b/haystack/components/converters/pypdf.py @@ -4,7 +4,6 @@ import io import os -import warnings from enum import Enum from pathlib import Path from typing import Any, Dict, List, Optional, Union diff --git a/haystack/components/converters/tika.py b/haystack/components/converters/tika.py index 7386cbb52c..980fb00911 100644 --- a/haystack/components/converters/tika.py +++ b/haystack/components/converters/tika.py @@ -4,7 +4,6 @@ import io import os -import warnings from html.parser import HTMLParser from pathlib import Path from typing import Any, Dict, List, Optional, Union diff --git a/haystack/components/converters/txt.py b/haystack/components/converters/txt.py index 6720347cc5..0ebbda8dfc 100644 --- a/haystack/components/converters/txt.py +++ b/haystack/components/converters/txt.py @@ -3,7 +3,6 @@ # SPDX-License-Identifier: Apache-2.0 import os -import warnings from pathlib import Path from typing import Any, Dict, List, Optional, Union