Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
masci committed May 7, 2024
1 parent a74ebfc commit c06c421
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion haystack/nodes/file_converter/docx.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def convert(
if id_hash_keys is None:
id_hash_keys = self.id_hash_keys

file = docx.Document(file_path) # Creating word reader object.
file = docx.Document(file_path) # Creating word reader object. # type:ignore
paragraphs = [para.text for para in file.paragraphs]
text = "\n".join(paragraphs)
document = Document(content=text, meta=meta, id_hash_keys=id_hash_keys)
Expand Down
9 changes: 1 addition & 8 deletions haystack/utils/import_utils.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
import io
import gzip
import tarfile
import zipfile
import logging
import importlib
import importlib.util
from pathlib import Path
from typing import Optional, Dict, Union, Tuple, List
from typing import Optional, Tuple, List
from urllib.parse import urlparse, unquote
from os.path import splitext, basename

import requests

from haystack.errors import DatasetsError
from haystack.schema import Document

Expand Down

0 comments on commit c06c421

Please sign in to comment.