mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-26 12:57:50 +08:00
typos
This commit is contained in:
@@ -143,10 +143,9 @@ class Dataset:
|
|||||||
|
|
||||||
if is_valid:
|
if is_valid:
|
||||||
return True
|
return True
|
||||||
else:
|
if not safety:
|
||||||
if not safety:
|
raise InvalidDimensions
|
||||||
raise InvalidDimensions
|
return False
|
||||||
return False
|
|
||||||
|
|
||||||
def _package(self, dicts=True, ordered=True):
|
def _package(self, dicts=True, ordered=True):
|
||||||
"""Packages Dataset into lists of dictionaries for transmission."""
|
"""Packages Dataset into lists of dictionaries for transmission."""
|
||||||
@@ -274,7 +273,8 @@ class Dataset:
|
|||||||
"""
|
"""
|
||||||
Export :class:`Dataset` object to `format`.
|
Export :class:`Dataset` object to `format`.
|
||||||
|
|
||||||
:param \\*\\*kwargs: (optional) custom configuration to the format `export_set`.
|
:param format: export format
|
||||||
|
:param kwargs: (optional) custom configuration to the format `export_set`.
|
||||||
"""
|
"""
|
||||||
fmt = registry.get_format(format)
|
fmt = registry.get_format(format)
|
||||||
if not hasattr(fmt, 'export_set'):
|
if not hasattr(fmt, 'export_set'):
|
||||||
|
|||||||
Reference in New Issue
Block a user