Skip to content

Commit d3d4592

Browse files
pre-commit-ci[bot]cclauss
authored andcommitted
[pre-commit.ci] pre-commit autoupdate (TheAlgorithms#8294)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/charliermarsh/ruff-pre-commit: v0.0.255 → v0.0.257](astral-sh/ruff-pre-commit@v0.0.255...v0.0.257) * Fix PLR1711 Useless statement at end of function --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Christian Clauss <[email protected]>
1 parent c56b932 commit d3d4592

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

Diff for: .pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ repos:
1616
- id: auto-walrus
1717

1818
- repo: https://github.com/charliermarsh/ruff-pre-commit
19-
rev: v0.0.255
19+
rev: v0.0.257
2020
hooks:
2121
- id: ruff
2222

Diff for: data_structures/binary_tree/avl_tree.py

-4
Original file line numberDiff line numberDiff line change
@@ -60,19 +60,15 @@ def get_height(self) -> int:
6060

6161
def set_data(self, data: Any) -> None:
6262
self.data = data
63-
return
6463

6564
def set_left(self, node: MyNode | None) -> None:
6665
self.left = node
67-
return
6866

6967
def set_right(self, node: MyNode | None) -> None:
7068
self.right = node
71-
return
7269

7370
def set_height(self, height: int) -> None:
7471
self.height = height
75-
return
7672

7773

7874
def get_height(node: MyNode | None) -> int:

Diff for: machine_learning/polymonial_regression.py

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ def viz_polymonial():
3434
plt.xlabel("Position level")
3535
plt.ylabel("Salary")
3636
plt.show()
37-
return
3837

3938

4039
if __name__ == "__main__":

0 commit comments

Comments
 (0)