Skip to content

Commit

Permalink
add_type_to_Field (#87)
Browse files Browse the repository at this point in the history
* add_type_to_Field

* Field.type should return the covariant DataType

---------

Co-authored-by: ZhengYu, Xu <[email protected]>
  • Loading branch information
deanm0000 and zen-xu authored Sep 15, 2024
1 parent 510e3bb commit 734f19b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyarrow-stubs/__lib_pxi/types.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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]: ...
Expand Down

0 comments on commit 734f19b

Please sign in to comment.