matrix-org / synapse

Synapse: Matrix homeserver written in Python/Twisted.
https://matrix-org.github.io/synapse
Apache License 2.0
11.8k stars 2.13k forks source link

Fix remaining uses of deprecated cmp argument in attrs decorators #9641

Open ulope opened 3 years ago

ulope commented 3 years ago

Description

There are a handful of places left that use the deprecated cmp argument on the attr.s decorator:

These should be fixed.

clokep commented 3 years ago

Any idea what they should be replaced? Would you be willing to make a PR making this change?

lakshay1121 commented 1 year ago

Is this issue still open ?

clokep commented 1 year ago

Is this issue still open ?

It looks like some of the instances have been replaced, but not all. I still see:

synapse/crypto/keyring.py:@attr.s(slots=True, frozen=True, cmp=False, auto_attribs=True)
synapse/events/builder.py:@attr.s(slots=True, cmp=False, frozen=True, auto_attribs=True)

9892 was a start on this, but was missing bumping the minimum version of attrs.

lakshay1121 commented 1 year ago

okk fine then.