From 734f19b4095298ad657bf27c9db6cbc45e49c88d Mon Sep 17 00:00:00 2001 From: deanm0000 <37878412+deanm0000@users.noreply.github.com> Date: Sun, 15 Sep 2024 08:55:32 -0400 Subject: [PATCH] add_type_to_Field (#87) * add_type_to_Field * Field.type should return the covariant DataType --------- Co-authored-by: ZhengYu, Xu --- pyarrow-stubs/__lib_pxi/types.pyi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyarrow-stubs/__lib_pxi/types.pyi b/pyarrow-stubs/__lib_pxi/types.pyi index eb6042d..259ff29 100644 --- a/pyarrow-stubs/__lib_pxi/types.pyi +++ b/pyarrow-stubs/__lib_pxi/types.pyi @@ -254,6 +254,8 @@ class Field(_Weakrefable, Generic[_DataType_CoT]): def name(self) -> str: ... @property def metadata(self) -> dict[bytes, bytes] | None: ... + @property + def type(self) -> _DataType_CoT: ... def with_metadata(self, metadata: dict[bytes | str, bytes | str]) -> Self: ... def remove_metadata(self) -> None: ... def with_type(self, new_type: _DataTypeT) -> Field[_DataTypeT]: ...