Enable ruff RUF100 rule (#11337)

This commit is contained in:
Maxim Smolskiy
2024-04-01 22:36:41 +03:00
committed by GitHub
parent c328b000ec
commit 39daaf8248
14 changed files with 23 additions and 24 deletions

View File

@ -152,7 +152,7 @@ class RedBlackTree:
self.grandparent.color = 1
self.grandparent._insert_repair()
def remove(self, label: int) -> RedBlackTree: # noqa: PLR0912
def remove(self, label: int) -> RedBlackTree:
"""Remove label from this tree."""
if self.label == label:
if self.left and self.right: