This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Fix remaining uses of deprecated cmp argument in attrs decorators #9641
Labels
good first issue
Good for newcomers
O-Uncommon
Most users are unlikely to come across this or unexpected workflow
S-Tolerable
Minor significance, cosmetic issues, low or no impact to users.
T-Task
Refactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.
Comments
Any idea what they should be replaced? Would you be willing to make a PR making this change? |
ulope
added a commit
to ulope/raiden
that referenced
this issue
Mar 18, 2021
We had accrued a big bunch of deprecation warnings (which usually showed up when running the tests) which would cause breakage in future Python versions. This upgrades packages as necessary and fixes most warnings. The remaining ones are being tracked here: - raiden-network/raiden-api-client#1 - matrix-org/synapse#9641 - matrix-org/synapse#9642 This also temporarily removes the docs requirements from the dev set since there's a conflict between `releases` and `py-solc-x` pinned versions of `semantic-version`. See: bitprophet/releases#94
ulope
added a commit
to ulope/raiden
that referenced
this issue
Mar 18, 2021
We had accrued a big bunch of deprecation warnings (which usually showed up when running the tests) which would cause breakage in future Python versions. This upgrades packages as necessary and fixes most warnings. The remaining ones are being tracked here: - raiden-network/raiden-api-client#1 - matrix-org/synapse#9641 - matrix-org/synapse#9642 This also temporarily removes the docs requirements from the dev set since there's a conflict between `releases` and `py-solc-x` pinned versions of `semantic-version`. See: bitprophet/releases#94
ulope
added a commit
to ulope/raiden
that referenced
this issue
Mar 18, 2021
We had accrued a big bunch of deprecation warnings (which usually showed up when running the tests) which would cause breakage in future Python versions. This upgrades packages as necessary and fixes most warnings. The remaining ones are being tracked here: - raiden-network/raiden-api-client#1 - matrix-org/synapse#9641 - matrix-org/synapse#9642 - slezica/python-frozendict#25 This also temporarily removes the docs requirements from the dev set since there's a conflict between `releases` and `py-solc-x` pinned versions of `semantic-version`. See: bitprophet/releases#94
ulope
added a commit
to ulope/raiden
that referenced
this issue
Mar 23, 2021
We had accrued a big bunch of deprecation warnings (which usually showed up when running the tests) which would cause breakage in future Python versions. This upgrades packages as necessary and fixes most warnings. The remaining ones are being tracked here: - raiden-network/raiden-api-client#1 - matrix-org/synapse#9641 - matrix-org/synapse#9642 - slezica/python-frozendict#25 This also temporarily removes the docs requirements from the dev set since there's a conflict between `releases` and `py-solc-x` pinned versions of `semantic-version`. See: bitprophet/releases#94
ulope
added a commit
to raiden-network/raiden
that referenced
this issue
Mar 23, 2021
We had accrued a big bunch of deprecation warnings (which usually showed up when running the tests) which would cause breakage in future Python versions. This upgrades packages as necessary and fixes most warnings. The remaining ones are being tracked here: - raiden-network/raiden-api-client#1 - matrix-org/synapse#9641 - matrix-org/synapse#9642 - slezica/python-frozendict#25 This also temporarily removes the docs requirements from the dev set since there's a conflict between `releases` and `py-solc-x` pinned versions of `semantic-version`. See: bitprophet/releases#94
karlb
pushed a commit
to raiden-network/raiden
that referenced
this issue
Apr 23, 2021
We had accrued a big bunch of deprecation warnings (which usually showed up when running the tests) which would cause breakage in future Python versions. This upgrades packages as necessary and fixes most warnings. The remaining ones are being tracked here: - raiden-network/raiden-api-client#1 - matrix-org/synapse#9641 - matrix-org/synapse#9642 - slezica/python-frozendict#25 This also temporarily removes the docs requirements from the dev set since there's a conflict between `releases` and `py-solc-x` pinned versions of `semantic-version`. See: bitprophet/releases#94
4 tasks
ulope
added a commit
to ulope/synapse
that referenced
this issue
Apr 27, 2021
The `cmp` argument to the `attr.s` decorator [is deprecated](https://www.attrs.org/en/stable/api.html#attr.s). This replaces it with `eq` and `order` as suggested in the attrs docs. Fixes: matrix-org#9641
Is this issue still open ? |
It looks like some of the instances have been replaced, but not all. I still see:
#9892 was a start on this, but was missing bumping the minimum version of attrs. |
okk fine then. |
2 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
good first issue
Good for newcomers
O-Uncommon
Most users are unlikely to come across this or unexpected workflow
S-Tolerable
Minor significance, cosmetic issues, low or no impact to users.
T-Task
Refactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.
Description
There are a handful of places left that use the deprecated
cmp
argument on theattr.s
decorator:synapse/synapse/events/builder.py
Line 38 in 0a00b7f
synapse/tests/server.py
Line 472 in d29b71a
synapse/synapse/types.py
Line 421 in a7a3790
synapse/synapse/crypto/keyring.py
Line 65 in 31b1905
These should be fixed.
The text was updated successfully, but these errors were encountered: