[core] Enable ruff PYI (flake8-pyi) lint family (#16654)
This commit is contained in:
1 parent
dd0028c1b5
commit
489cf483d0
5 files changed
+18
-15
No files matched your search
+12
-10
@@ -1077,43 +1077,45 @@ class MockObj(Expression):
|
||||
op = BinOpExpression(other, "|", self)
|
||||
return MockObj(op)
|
||||
|
||||
def __iadd__(self, other: SafeExpType) -> "MockObj":
|
||||
# MockObj operator overloads build a new C++ expression rather than mutating self,
|
||||
# so the PYI034 "augmented assignment returns self" assumption does not apply.
|
||||
def __iadd__(self, other: SafeExpType) -> "MockObj": # noqa: PYI034
|
||||
op = BinOpExpression(self, "+=", other)
|
||||
return MockObj(op)
|
||||
|
||||
def __isub__(self, other: SafeExpType) -> "MockObj":
|
||||
def __isub__(self, other: SafeExpType) -> "MockObj": # noqa: PYI034
|
||||
op = BinOpExpression(self, "-=", other)
|
||||
return MockObj(op)
|
||||
|
||||
def __imul__(self, other: SafeExpType) -> "MockObj":
|
||||
def __imul__(self, other: SafeExpType) -> "MockObj": # noqa: PYI034
|
||||
op = BinOpExpression(self, "*=", other)
|
||||
return MockObj(op)
|
||||
|
||||
def __itruediv__(self, other: SafeExpType) -> "MockObj":
|
||||
def __itruediv__(self, other: SafeExpType) -> "MockObj": # noqa: PYI034
|
||||
op = BinOpExpression(self, "/=", other)
|
||||
return MockObj(op)
|
||||
|
||||
def __imod__(self, other: SafeExpType) -> "MockObj":
|
||||
def __imod__(self, other: SafeExpType) -> "MockObj": # noqa: PYI034
|
||||
op = BinOpExpression(self, "%=", other)
|
||||
return MockObj(op)
|
||||
|
||||
def __ilshift__(self, other: SafeExpType) -> "MockObj":
|
||||
def __ilshift__(self, other: SafeExpType) -> "MockObj": # noqa: PYI034
|
||||
op = BinOpExpression(self, "<<=", other)
|
||||
return MockObj(op)
|
||||
|
||||
def __irshift__(self, other: SafeExpType) -> "MockObj":
|
||||
def __irshift__(self, other: SafeExpType) -> "MockObj": # noqa: PYI034
|
||||
op = BinOpExpression(self, ">>=", other)
|
||||
return MockObj(op)
|
||||
|
||||
def __iand__(self, other: SafeExpType) -> "MockObj":
|
||||
def __iand__(self, other: SafeExpType) -> "MockObj": # noqa: PYI034
|
||||
op = BinOpExpression(self, "&=", other)
|
||||
return MockObj(op)
|
||||
|
||||
def __ixor__(self, other: SafeExpType) -> "MockObj":
|
||||
def __ixor__(self, other: SafeExpType) -> "MockObj": # noqa: PYI034
|
||||
op = BinOpExpression(self, "^=", other)
|
||||
return MockObj(op)
|
||||
|
||||
def __ior__(self, other: SafeExpType) -> "MockObj":
|
||||
def __ior__(self, other: SafeExpType) -> "MockObj": # noqa: PYI034
|
||||
op = BinOpExpression(self, "|=", other)
|
||||
return MockObj(op)
|
||||
|
||||
|
||||
Reference in new issue
Block a user