Skip to content

Commit

Permalink
Fix pre-commit linter errors (ray-project#47947)
Browse files Browse the repository at this point in the history
The pre-commit hooks fail for me locally due to these issues.

Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: ujjawal-khare <ujjawal.khare@dream11.com>
  • Loading branch information
edoakes authored and ujjawal-khare committed Oct 15, 2024
1 parent a664efe commit 1971677
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions python/ray/data/_internal/plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,8 +582,8 @@ def is_read_only(self, root_op: Optional[LogicalOperator] = None) -> bool:
return isinstance(root_op, Read) and len(root_op.input_dependencies) == 0

def has_computed_output(self) -> bool:
"""Whether this plan has a computed snapshot for the final operator, i.e. for the
output of this plan.
"""Whether this plan has a computed snapshot for the final operator, i.e. for
the output of this plan.
"""
return (
self._snapshot_bundle is not None
Expand Down
2 changes: 1 addition & 1 deletion python/ray/data/tests/test_parquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def __init__(self, planned_exp_or_return):
def __call__(self, *args: Any, **kwds: Any) -> Any:
exp_or_ret = self.planned_exp_or_return[self.cur_index]
self.cur_index += 1
if type(exp_or_ret) == Exception:
if isinstance(exp_or_ret, Exception):
raise exp_or_ret
else:
return exp_or_ret
Expand Down

0 comments on commit 1971677

Please sign in to comment.