Skip to content

Commit 2cb41e7

Browse files
authored
Fix Pylint not-an-iterable (#199)
Line 145 was mis-diagnosed as iterating an non-iterable Field. This Field was used to store a default factory instead of using mutable default. However Pydantic allows mutable defaults and handles them correctly. Pylint 3.3.7
1 parent 1119cf4 commit 2cb41e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/sedpack/io/metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class DatasetStructure(BaseModel):
124124
hash_checksum_algorithms (tuple[HashChecksumT, ...]): Which hash
125125
algorithms should be computed for file hash checksums.
126126
"""
127-
saved_data_description: list[Attribute] = Field(default_factory=list)
127+
saved_data_description: list[Attribute] = []
128128
compression: CompressionT = "GZIP"
129129
examples_per_shard: int = 256
130130
shard_file_type: ShardFileTypeT = "tfrec"

0 commit comments

Comments
 (0)