Skip to content

Commit

Permalink
python 3.11 fixes: avoid attrs warning for setting cells
Browse files Browse the repository at this point in the history
RuntimeWarning: Running interpreter doesn't sufficiently support code object introspection.  Some features like bare super() or accessing __class__ will not work with slotted classes.
  • Loading branch information
asottile committed Jan 23, 2022
1 parent 2ab3aba commit b7b3a53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testing/test_assertion.py
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,7 @@ def __eq__(self, other): # pragma: no cover
assert lines is None

def test_attrs_with_custom_eq(self) -> None:
@attr.define
@attr.define(slots=False)
class SimpleDataObject:
field_a = attr.ib()

Expand Down

0 comments on commit b7b3a53

Please sign in to comment.