Skip to content

Commit

Permalink
chore(pre-commit): [pre-commit.ci] autoupdate (#176)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Xuehai Pan <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and XuehaiPan authored Dec 3, 2024
1 parent 3da0f7d commit 997af1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ repos:
hooks:
- id: clang-format
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.0
rev: v0.8.1
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
2 changes: 1 addition & 1 deletion optree/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ def tree_is_leaf(
(default: :const:`''`, i.e., the global namespace)
Returns:
A boolean indicating if all elements in the input iterable are leaves.
A boolean indicating if the given object is a leaf node.
"""
return _C.is_leaf(tree, is_leaf, none_is_leaf, namespace) # type: ignore[arg-type]

Expand Down

0 comments on commit 997af1d

Please sign in to comment.