Skip to content

Commit

Permalink
[Doc] Fix broken dataset references; reenable nitpicky mode
Browse files Browse the repository at this point in the history
Signed-off-by: pdmurray <[email protected]>
  • Loading branch information
peytondmurray committed Jun 26, 2024
1 parent 77c4822 commit 70afe44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions doc/source/data/api/dataset.rst
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,8 @@ Schema
.. autosummary::
:nosignatures:
:toctree: doc/
:template: autosummary/class_without_autosummary_noindex.rst

Schema
dataset.Schema

.. _block-api:

Expand Down
5 changes: 1 addition & 4 deletions python/ray/data/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -4998,9 +4998,6 @@ class Schema:
"""Dataset schema.
Attributes:
names: List of column names of this Dataset.
types: List of Arrow types of the Dataset. Note that the "object" type is
not Arrow compatible and hence is returned as `object`.
base_schema: The underlying Arrow or Pandas schema.
"""

Expand All @@ -5013,7 +5010,7 @@ def names(self) -> List[str]:
return self.base_schema.names

@property
def types(self) -> List[Union[Literal[object], "pyarrow.DataType"]]:
def types(self) -> List[Union[object, "pyarrow.lib.DataType"]]:
"""Lists the types of this Dataset in Arrow format
For non-Arrow compatible types, we return "object".
Expand Down

0 comments on commit 70afe44

Please sign in to comment.