mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-25 00:20:24 -04:00
Add type hints to DictionaryCache and TTLCache. (#9442)
This commit is contained in:
parent
7dcf3fd221
commit
01dd90b0f0
7 changed files with 96 additions and 67 deletions
|
@ -27,7 +27,9 @@ class DictCacheTestCase(unittest.TestCase):
|
|||
key = "test_simple_cache_hit_full"
|
||||
|
||||
v = self.cache.get(key)
|
||||
self.assertEqual((False, set(), {}), v)
|
||||
self.assertIs(v.full, False)
|
||||
self.assertEqual(v.known_absent, set())
|
||||
self.assertEqual({}, v.value)
|
||||
|
||||
seq = self.cache.sequence
|
||||
test_value = {"test": "test_simple_cache_hit_full"}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue