Skip to content

Commit 7c13f9a

Browse files
Attempt to fix docs
1 parent 619f9eb commit 7c13f9a

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ sphinx-autodoc-typehints
33
sphinx-rtd-theme
44
docutils==0.16
55
autodoc_pydantic
6+
pyarrow >= 21.0.0
67
.

nisystemlink/clients/dataframe/_data_frame_client.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@
22

33
from collections.abc import Iterable
44
from io import BytesIO
5-
from typing import List, Optional, Union
6-
7-
try:
8-
import pyarrow as pa # type: ignore
9-
except Exception:
10-
pa = None
5+
from typing import List, Optional, TYPE_CHECKING, Union
6+
7+
if TYPE_CHECKING:
8+
import pyarrow as pa
9+
else:
10+
try:
11+
import pyarrow as pa # type: ignore
12+
except Exception:
13+
pa = None
1114
from nisystemlink.clients import core
1215
from nisystemlink.clients.core._uplink._base_client import BaseClient
1316
from nisystemlink.clients.core._uplink._methods import (
@@ -280,8 +283,8 @@ def append_table_data(
280283
Union[
281284
models.AppendTableDataRequest,
282285
models.DataFrame,
283-
"pa.RecordBatch", # type: ignore[name-defined]
284-
Iterable["pa.RecordBatch"], # type: ignore[name-defined]
286+
"pa.RecordBatch",
287+
Iterable["pa.RecordBatch"],
285288
]
286289
],
287290
*,

0 commit comments

Comments
 (0)