Skip to content

Commit 221dede

Browse files
Cleanup
1 parent db95df7 commit 221dede

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

nisystemlink/clients/dataframe/_data_frame_client.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
"""Implementation of DataFrameClient."""
22

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
74
from collections.abc import Iterable
85
from io import BytesIO
9-
from typing import Any, List, Optional, Union
6+
from typing import List, Optional, Union
107

118
from nisystemlink.clients import core
129
from nisystemlink.clients.core._uplink._base_client import BaseClient
@@ -19,7 +16,7 @@
1916
)
2017
from nisystemlink.clients.core.helpers import IteratorFileLike
2118
from requests.models import Response
22-
from uplink import Body, Field, Path, Query, headers, retry
19+
from uplink import Body, Field, Path, Query, retry
2320

2421
from . import models
2522

@@ -452,7 +449,7 @@ def query_decimated_data(
452449
"""
453450
...
454451

455-
def _iter_content_filelike_wrapper(response: Response) -> IteratorFileLike: # type: ignore
452+
def _iter_content_filelike_wrapper(response: Response) -> IteratorFileLike:
456453
return IteratorFileLike(response.iter_content(chunk_size=4096))
457454

458455
@response_handler(_iter_content_filelike_wrapper)

tests/integration/dataframe/test_dataframe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
from datetime import datetime, timezone
3-
from typing import List, Optional, Iterable
3+
from typing import List, Optional
44

55
import pytest # type: ignore
66
import responses

0 commit comments

Comments
 (0)