mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-23 21:11:08 +00:00
[pre-commit.ci] pre-commit autoupdate (#8294)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/charliermarsh/ruff-pre-commit: v0.0.255 → v0.0.257](https://github.com/charliermarsh/ruff-pre-commit/compare/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 <cclauss@me.com>
This commit is contained in:
parent
521fbca61c
commit
3f9150c1b2
|
@ -16,7 +16,7 @@ repos:
|
|||
- id: auto-walrus
|
||||
|
||||
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
||||
rev: v0.0.255
|
||||
rev: v0.0.257
|
||||
hooks:
|
||||
- id: ruff
|
||||
|
||||
|
|
|
@ -60,19 +60,15 @@ class MyNode:
|
|||
|
||||
def set_data(self, data: Any) -> None:
|
||||
self.data = data
|
||||
return
|
||||
|
||||
def set_left(self, node: MyNode | None) -> None:
|
||||
self.left = node
|
||||
return
|
||||
|
||||
def set_right(self, node: MyNode | None) -> None:
|
||||
self.right = node
|
||||
return
|
||||
|
||||
def set_height(self, height: int) -> None:
|
||||
self.height = height
|
||||
return
|
||||
|
||||
|
||||
def get_height(node: MyNode | None) -> int:
|
||||
|
|
|
@ -34,7 +34,6 @@ def viz_polymonial():
|
|||
plt.xlabel("Position level")
|
||||
plt.ylabel("Salary")
|
||||
plt.show()
|
||||
return
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Reference in New Issue
Block a user