python 3.11 fixes: avoid attrs warning for setting cells
RuntimeWarning: Running interpreter doesn't sufficiently support code object introspection. Some features like bare super() or accessing __class__ will not work with slotted classes.
This commit is contained in:
parent
737688eeb9
commit
43d54c8b42
|
@ -1026,7 +1026,7 @@ class TestAssert_reprcompare_attrsclass:
|
||||||
assert lines is None
|
assert lines is None
|
||||||
|
|
||||||
def test_attrs_with_custom_eq(self) -> None:
|
def test_attrs_with_custom_eq(self) -> None:
|
||||||
@attr.define
|
@attr.define(slots=False)
|
||||||
class SimpleDataObject:
|
class SimpleDataObject:
|
||||||
field_a = attr.ib()
|
field_a = attr.ib()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue