We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 434f921 commit 10729bdCopy full SHA for 10729bd
fileformats/core/fileset.py
@@ -101,6 +101,8 @@ def __init__(
101
metadata: ty.Optional[ty.Dict[str, ty.Any]] = None,
102
**load_kwargs: ty.Any,
103
):
104
+ if not fspaths:
105
+ raise ValueError("No file-system paths provided to FileSet")
106
self._explicit_metadata = metadata
107
self._load_kwargs = load_kwargs
108
self._validate_class()
@@ -800,7 +802,7 @@ def byte_chunks(
800
802
rel_path: str
801
803
relative path to either 'relative_to' arg or common base path for each file
804
in the file set
- byte_iter : Generator[bytes]
805
+ byte_iter : Generator[bytes, None, None]
806
an iterator over the bytes contents of the file, chunked into 'chunk_len'
807
chunks
808
"""
0 commit comments