|
17 | 17 |
|
18 | 18 |
|
19 | 19 | class OperationHolderMixin: |
20 | | - def __and__( |
21 | | - self, other: Union[Type["BasePermission"], "BasePermission"] |
| 20 | + def __and__( # type:ignore[misc] |
| 21 | + self: Union[Type["BasePermission"], "BasePermission"], |
| 22 | + other: Union[Type["BasePermission"], "BasePermission"], |
22 | 23 | ) -> "OperandHolder[AND]": |
23 | | - return OperandHolder(AND, self, other) # type: ignore |
| 24 | + return OperandHolder(AND, self, other) |
24 | 25 |
|
25 | | - def __or__( |
26 | | - self, other: Union[Type["BasePermission"], "BasePermission"] |
| 26 | + def __or__( # type:ignore[misc] |
| 27 | + self: Union[Type["BasePermission"], "BasePermission"], |
| 28 | + other: Union[Type["BasePermission"], "BasePermission"], |
27 | 29 | ) -> "OperandHolder[OR]": |
28 | | - return OperandHolder(OR, self, other) # type: ignore |
| 30 | + return OperandHolder(OR, self, other) |
29 | 31 |
|
30 | | - def __rand__( |
31 | | - self, other: Union[Type["BasePermission"], "BasePermission"] |
| 32 | + def __rand__( # type:ignore[misc] |
| 33 | + self: Union[Type["BasePermission"], "BasePermission"], |
| 34 | + other: Union[Type["BasePermission"], "BasePermission"], |
32 | 35 | ) -> "OperandHolder[AND]": # pragma: no cover |
33 | | - return OperandHolder(AND, other, self) # type: ignore |
| 36 | + return OperandHolder(AND, other, self) |
34 | 37 |
|
35 | | - def __ror__( |
36 | | - self, other: Union[Type["BasePermission"], "BasePermission"] |
| 38 | + def __ror__( # type:ignore[misc] |
| 39 | + self: Union[Type["BasePermission"], "BasePermission"], |
| 40 | + other: Union[Type["BasePermission"], "BasePermission"], |
37 | 41 | ) -> "OperandHolder[OR]": # pragma: no cover |
38 | | - return OperandHolder(OR, other, self) # type: ignore |
| 42 | + return OperandHolder(OR, other, self) |
39 | 43 |
|
40 | | - def __invert__(self) -> "SingleOperandHolder[NOT]": |
41 | | - return SingleOperandHolder(NOT, self) # type: ignore |
| 44 | + def __invert__( # type:ignore[misc] |
| 45 | + self: Union[Type["BasePermission"], "BasePermission"] |
| 46 | + ) -> "SingleOperandHolder[NOT]": |
| 47 | + return SingleOperandHolder(NOT, self) |
42 | 48 |
|
43 | 49 |
|
44 | | -class BasePermissionMetaclass(OperationHolderMixin, ABCMeta): |
| 50 | +class BasePermissionMetaclass(OperationHolderMixin, ABCMeta): # type: ignore[misc] |
45 | 51 | pass |
46 | 52 |
|
47 | 53 |
|
|
0 commit comments