From 0156025b8f592b3daaec42cff57e2cab7f3b8aca Mon Sep 17 00:00:00 2001 From: Ilia Ablamonov Date: Mon, 9 Sep 2024 14:34:06 +0200 Subject: [PATCH] fix: from_pylist covariance (#73) --- pyarrow-stubs/__lib_pxi/table.pyi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyarrow-stubs/__lib_pxi/table.pyi b/pyarrow-stubs/__lib_pxi/table.pyi index 870552d..35b1f48 100644 --- a/pyarrow-stubs/__lib_pxi/table.pyi +++ b/pyarrow-stubs/__lib_pxi/table.pyi @@ -12,6 +12,7 @@ from typing import ( Literal, Mapping, Self, + Sequence, TypeAlias, TypeVar, overload, @@ -411,7 +412,7 @@ class _Tabular(_PandasConvertible[pd.DataFrame], Generic[_ColumnT]): @classmethod def from_pylist( cls, - mapping: list[Mapping[str, Any]], + mapping: Sequence[Mapping[str, Any]], schema: Schema | None = None, metadata: Mapping | None = None, ) -> Self: ...