Enable Ruff SLOT rules (#115043)
This commit is contained in:
parent
0636ba340c
commit
d61db732da
7 changed files with 9 additions and 4 deletions
|
@ -305,6 +305,8 @@ def gen_result_wrapper(kls: type[dict | list | set]) -> type:
|
|||
class TupleWrapper(tuple, ResultWrapper):
|
||||
"""Wrap a tuple."""
|
||||
|
||||
__slots__ = ()
|
||||
|
||||
# This is all magic to be allowed to subclass a tuple.
|
||||
|
||||
def __new__(cls, value: tuple, *, render_result: str | None = None) -> Self:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue