File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
src/unstructured_client/_hooks/custom Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -56,10 +56,10 @@ def check_pdf(pdf: PdfReader) -> PdfReader:
5656 """
5757 try :
5858 # This will raise if the file is encrypted
59- pdf .metadata
59+ pdf .metadata # pylint: disable=pointless-statement
6060
6161 # This will raise if the file's root object is corrupted
62- pdf .root_object
62+ pdf .root_object # pylint: disable=pointless-statement
6363
6464 # This will raise if the file's pages are corrupted
6565 list (pdf .pages )
Original file line number Diff line number Diff line change 1515
1616import aiofiles
1717import httpx
18- from httpx import RequestError
1918import nest_asyncio # type: ignore
20- from httpx import AsyncClient
19+ from httpx import AsyncClient , RequestError
2120from pypdf import PdfReader , PdfWriter
2221
2322from unstructured_client ._hooks .custom import form_utils , pdf_utils , request_utils
You can’t perform that action at this time.
0 commit comments