This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Remove (direct) use of constantly
#12607
Labels
good first issue
Good for newcomers
T-Task
Refactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.
The entire source tree uses
constantly
in exactly one file, originally added in #6377.synapse/synapse/storage/databases/main/events_worker.py
Line 33 in 8a87b44
synapse/synapse/storage/databases/main/events_worker.py
Lines 153 to 160 in 8a87b44
In other places, we use the stdlib
enum
module instead. For instance:synapse/synapse/handlers/state_deltas.py
Lines 25 to 28 in e24ff8e
I would like us to use the enum approach and ditch constantly, for three reasons:
reveal_type(EventRedactBehaviour.AS_IS)
yieldssynapse/handlers/message.py:1407: note: Revealed type is "Any"
.Task list:
constantly
with equivalent imports from stdlibenum
EventRedactBehaviour
type in terms ofenum
The text was updated successfully, but these errors were encountered: