[core] Enable ruff RSE (flake8-raise) lint family (#16649)

This commit is contained in:
J. Nick Koston
2026-05-25 20:06:34 -05:00
committed by GitHub
parent f1839489dd
commit bbc24ab546
6 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -893,7 +893,7 @@ class MockObj(Expression):
def __getattr__(self, attr: str) -> "MockObj":
# prevent python dunder methods being replaced by mock objects
if attr.startswith("__"):
raise AttributeError()
raise AttributeError
next_op = "."
if attr.startswith("P") and self.op not in ["::", ""]:
attr = attr[1:]