This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Fix setattr
usage on FederationRateLimitConfig.__init__()
#10352
Labels
T-Task
Refactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.
(Kinda successor of #8376, with #8351 handling the other bit of that issue.)
Doing
setattr
(viakwargs
or otherwise) upon instance initialisation disallows static analysis of the types those variables have, or it's existence (properly).FederationRateLimitConfig
currently does this, though it's not used as a type annotation anywhere, I think this is a precursor to that.synapse/synapse/config/ratelimiting.py
Lines 41 to 43 in 2ca4e34
(I saw that someone fixed this snippet i pointed at in the previous issue, thank you @ who ever fixed that ❤️)
The text was updated successfully, but these errors were encountered: