|
1 | 1 | """Implementation of DataFrameClient.""" |
2 | 2 |
|
3 | | -try: # Optional pyarrow dependency |
4 | | - import pyarrow as pa # type: ignore |
5 | | -except Exception: # pragma: no cover - pyarrow not installed |
6 | | - pa = None # type: ignore |
| 3 | +import pyarrow as pa # type: ignore |
7 | 4 | from collections.abc import Iterable |
8 | 5 | from io import BytesIO |
9 | | -from typing import Any, List, Optional, Union |
| 6 | +from typing import List, Optional, Union |
10 | 7 |
|
11 | 8 | from nisystemlink.clients import core |
12 | 9 | from nisystemlink.clients.core._uplink._base_client import BaseClient |
|
19 | 16 | ) |
20 | 17 | from nisystemlink.clients.core.helpers import IteratorFileLike |
21 | 18 | from requests.models import Response |
22 | | -from uplink import Body, Field, Path, Query, headers, retry |
| 19 | +from uplink import Body, Field, Path, Query, retry |
23 | 20 |
|
24 | 21 | from . import models |
25 | 22 |
|
@@ -452,7 +449,7 @@ def query_decimated_data( |
452 | 449 | """ |
453 | 450 | ... |
454 | 451 |
|
455 | | - def _iter_content_filelike_wrapper(response: Response) -> IteratorFileLike: # type: ignore |
| 452 | + def _iter_content_filelike_wrapper(response: Response) -> IteratorFileLike: |
456 | 453 | return IteratorFileLike(response.iter_content(chunk_size=4096)) |
457 | 454 |
|
458 | 455 | @response_handler(_iter_content_filelike_wrapper) |
|
0 commit comments