mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-03 11:26:02 -04:00
Convert all namedtuples to attrs. (#11665)
To improve type hints throughout the code.
This commit is contained in:
parent
07a3b5daba
commit
cbd82d0b2d
22 changed files with 231 additions and 206 deletions
|
@ -14,7 +14,7 @@
|
|||
# limitations under the License.
|
||||
import heapq
|
||||
import logging
|
||||
from collections import defaultdict, namedtuple
|
||||
from collections import defaultdict
|
||||
from typing import (
|
||||
TYPE_CHECKING,
|
||||
Any,
|
||||
|
@ -69,9 +69,6 @@ state_groups_histogram = Histogram(
|
|||
)
|
||||
|
||||
|
||||
KeyStateTuple = namedtuple("KeyStateTuple", ("context", "type", "state_key"))
|
||||
|
||||
|
||||
EVICTION_TIMEOUT_SECONDS = 60 * 60
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue