[ruff] Enable FURB rules for code modernization (#9896)

This commit is contained in:
J. Nick Koston authored and GitHub committed 2025-07-26 20:54:03 +12:00
1 parent d54db471bd
commit d64e4d3c49
9 files changed
+13 -15

No files matched your search

+1 -2
View File
@@ -771,8 +771,7 @@ class MockObj(Expression):
if attr.startswith("P") and self.op not in ["::", ""]:
attr = attr[1:]
next_op = "->"
if attr.startswith("_"):
attr = attr[1:]
attr = attr.removeprefix("_")
return MockObj(f"{self.base}{self.op}{attr}", next_op)
def __call__(self, *args: SafeExpType) -> "MockObj":