[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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 6 deletions

View File

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

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:

View File

@ -34,7 +34,6 @@ def viz_polymonial():
plt.xlabel("Position level")
plt.ylabel("Salary")
plt.show()
return
if __name__ == "__main__":