Skip to content

Commit b861538

Browse files
fix: pylint errors and warnings
1 parent bd7f658 commit b861538

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/unstructured_client/_hooks/custom/pdf_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

src/unstructured_client/_hooks/custom/split_pdf_hook.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@
1515

1616
import aiofiles
1717
import httpx
18-
from httpx import RequestError
1918
import nest_asyncio # type: ignore
20-
from httpx import AsyncClient
19+
from httpx import AsyncClient, RequestError
2120
from pypdf import PdfReader, PdfWriter
2221

2322
from unstructured_client._hooks.custom import form_utils, pdf_utils, request_utils

0 commit comments

Comments
 (0)