Skip to content

Commit 7fc56cb

Browse files
authored
fix/fix mypy error in generate job (#159)
[This job](https://github.com/Unstructured-IO/unstructured-python-client/actions/runs/10501696789/job/29092112690) failed due to a `import-not-found` error from mypy.
1 parent 0410784 commit 7fc56cb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

_test_unstructured_client/integration/test_decorators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ async def mock_send(_, request):
337337
sdk = UnstructuredClient(
338338
api_key_auth=FAKE_KEY,
339339
server_url="localhost:8000",
340-
retry_config=RetryConfig("backoff", BackoffStrategy(200, 1000, 1.5, 1000), False),
340+
retry_config=RetryConfig("backoff", BackoffStrategy(200, 1000, 1.5, 10000), False),
341341
)
342342

343343
filename = "_sample_docs/layout-parser-paper.pdf"

src/unstructured_client/_hooks/custom/split_pdf_hook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ async def run_tasks(coroutines: list[Coroutine], allow_failed: bool = False) ->
7676
def context_is_uvloop():
7777
"""Return true if uvloop is installed and we're currently in a uvloop context. Our asyncio splitting code currently doesn't work under uvloop."""
7878
try:
79-
import uvloop # pylint: disable=import-outside-toplevel
79+
import uvloop # pylint: disable=import-outside-toplevel # type: ignore
8080
loop = asyncio.get_event_loop()
8181
return isinstance(loop, uvloop.Loop)
8282
except (ImportError, RuntimeError):

0 commit comments

Comments
 (0)