mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-17 19:40:19 -04:00
Stop sub-classing object (#8249)
This commit is contained in:
parent
9f8abdcc38
commit
c619253db8
168 changed files with 293 additions and 292 deletions
|
@ -77,7 +77,7 @@ def _gen_state_id():
|
|||
return s
|
||||
|
||||
|
||||
class _StateCacheEntry(object):
|
||||
class _StateCacheEntry:
|
||||
__slots__ = ["state", "state_group", "state_id", "prev_group", "delta_ids"]
|
||||
|
||||
def __init__(
|
||||
|
@ -113,7 +113,7 @@ class _StateCacheEntry(object):
|
|||
return len(self.state)
|
||||
|
||||
|
||||
class StateHandler(object):
|
||||
class StateHandler:
|
||||
"""Fetches bits of state from the stores, and does state resolution
|
||||
where necessary
|
||||
"""
|
||||
|
@ -462,7 +462,7 @@ class StateHandler(object):
|
|||
return {key: state_map[ev_id] for key, ev_id in new_state.items()}
|
||||
|
||||
|
||||
class StateResolutionHandler(object):
|
||||
class StateResolutionHandler:
|
||||
"""Responsible for doing state conflict resolution.
|
||||
|
||||
Note that the storage layer depends on this handler, so all functions must
|
||||
|
@ -679,7 +679,7 @@ def resolve_events_with_store(
|
|||
|
||||
|
||||
@attr.s
|
||||
class StateResolutionStore(object):
|
||||
class StateResolutionStore:
|
||||
"""Interface that allows state resolution algorithms to access the database
|
||||
in well defined way.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue