Skip to content

Commit

Permalink
Fix pytype error.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcenacp committed Nov 29, 2024
1 parent 7ca7552 commit 4bcc63a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/mlcroissant/mlcroissant/_src/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,11 @@ def _filter_interesting_operations(self, filters: Filters | None) -> Operations:
join_uuid = field.references.uuid
graph = field.ctx.graph
if join_uuid:
join_node = next(node for node in graph if node.uuid == join_uuid)
join_node = next(
node
for node in graph
if isinstance(node, Field) and node.uuid == join_uuid
)
unneeded_nodes = [
node
for node in graph
Expand Down

0 comments on commit 4bcc63a

Please sign in to comment.