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

This commit is contained in:
J. Nick Koston authored and GitHub committed 2026-05-25 20:06:34 -05:00
1 parent f1839489dd
commit bbc24ab546
6 files changed
+6 -5

No files matched your search

+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:]