[core] Enable ruff RSE (flake8-raise) lint family (#16649)
This commit is contained in:
1 parent
f1839489dd
commit
bbc24ab546
6 files changed
+6
-5
No files matched your search
@@ -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:]
|
||||
|
||||
Reference in new issue
Block a user