Skip to content

Commit 1432d63

Browse files
authored
improve coverage for pyarrow.struct typehint (#157)
1 parent 78cce86 commit 1432d63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyarrow-stubs/__lib_pxi/types.pyi

+1-1
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ def dictionary(
426426
index_type: _IndexT, value_type: _BasicValueT, ordered: _Ordered
427427
) -> DictionaryType[_IndexT, _BasicValueT, _Ordered]: ...
428428
def struct(
429-
fields: Iterable[Field | tuple[str, Field]] | Mapping[str, Field],
429+
fields: Iterable[Field | tuple[str, Field] | tuple[str, DataType]] | Mapping[str, Field],
430430
) -> StructType: ...
431431
def sparse_union(
432432
child_fields: list[Field], type_codes: list[int] | None = None

0 commit comments

Comments
 (0)