Skip to content

Commit a9ef78e

Browse files
author
gabriel
committed
mypy
1 parent 2a05ffb commit a9ef78e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

dataframely/functional.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def concat_collection_members(collections: Sequence[C], /) -> dict[str, pl.LazyF
107107
"""
108108
if len(collections) == 0:
109109
raise ValueError("Cannot concatenate less than one collection.")
110-
members = [c.to_dict() for c in collections]
110+
members = [c._to_lazy_dict() for c in collections]
111111
key_union = set(members[0]).union(*members[1:])
112112
return {
113113
key: pl.concat(

dataframely/testing/storage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def write_untyped(
276276
# Since the metadata retrieval depends on the metadata being attached to the
277277
# latest commit, this will make the metadata unretrievable.
278278
fs: AbstractFileSystem = url_to_fs(path)[0]
279-
for member, df in collection.to_dict().items():
279+
for member, df in collection._to_lazy_dict().items():
280280
table = _to_delta_table(fs.sep.join([path, member]))
281281
df.head(0).collect().write_delta(table, mode="append")
282282

0 commit comments

Comments
 (0)