mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 16:34:47 -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
|
@ -3,7 +3,7 @@ from typing import Dict
|
|||
SENTINEL = object()
|
||||
|
||||
|
||||
class TreeCache(object):
|
||||
class TreeCache:
|
||||
"""
|
||||
Tree-based backing store for LruCache. Allows subtrees of data to be deleted
|
||||
efficiently.
|
||||
|
@ -89,7 +89,7 @@ def iterate_tree_cache_entry(d):
|
|||
yield d
|
||||
|
||||
|
||||
class _Entry(object):
|
||||
class _Entry:
|
||||
__slots__ = ["value"]
|
||||
|
||||
def __init__(self, value):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue