[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:
pre-commit-ci[bot]
2023-03-20 22:16:13 +01:00
committed by GitHub
parent 521fbca61c
commit 3f9150c1b2
3 changed files with 1 additions and 6 deletions

View File

@ -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: