Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 2, 2024
1 parent e93416d commit 60c339d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/dvc_data/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ def batched(iterable: Iterable[T], n: int) -> Iterator[tuple[T, ...]]:
yield batch


__all__ = ["cached_property", "batched"]
__all__ = ["batched", "cached_property"]
2 changes: 1 addition & 1 deletion src/dvc_data/index/save.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def build_tree(
assert tree_meta.nfiles is not None
tree = Tree()
for key, entry in index.iteritems(prefix=prefix):
if key == prefix or entry.meta and entry.meta.isdir:
if key == prefix or (entry.meta and entry.meta.isdir):
continue
tree_key = key[len(prefix) :]
tree.add(tree_key, entry.meta, entry.hash_info)
Expand Down
2 changes: 1 addition & 1 deletion src/dvc_data/json_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ def dumps(data: Any) -> str:
return orjson.dumps(data).decode("utf8")


__all__ = ["loads", "dumps"]
__all__ = ["dumps", "loads"]

0 comments on commit 60c339d

Please sign in to comment.