mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-06 10:31:29 +08:00
Enable ruff RUF100 rule (#11337)
This commit is contained in:
@ -87,7 +87,7 @@ class SegmentTree(Generic[T]):
|
||||
p = p // 2
|
||||
self.st[p] = self.fn(self.st[p * 2], self.st[p * 2 + 1])
|
||||
|
||||
def query(self, l: int, r: int) -> T | None: # noqa: E741
|
||||
def query(self, l: int, r: int) -> T | None:
|
||||
"""
|
||||
Get range query value in log(N) time
|
||||
:param l: left element index
|
||||
|
Reference in New Issue
Block a user