Use type hinting generics in standard collections (#19046)
aka PEP 585, added in Python 3.9 - https://peps.python.org/pep-0585/ - https://docs.astral.sh/ruff/rules/non-pep585-annotation/
This commit is contained in:
committed by
GitHub
parent
cba3a814c6
commit
fc244bb592
@@ -19,7 +19,6 @@
|
||||
#
|
||||
#
|
||||
|
||||
from typing import List
|
||||
|
||||
from synapse.util.caches.expiringcache import ExpiringCache
|
||||
|
||||
@@ -65,7 +64,7 @@ class ExpiringCacheTestCase(unittest.HomeserverTestCase):
|
||||
|
||||
def test_iterable_eviction(self) -> None:
|
||||
reactor, clock = get_clock()
|
||||
cache: ExpiringCache[str, List[int]] = ExpiringCache(
|
||||
cache: ExpiringCache[str, list[int]] = ExpiringCache(
|
||||
cache_name="test",
|
||||
server_name="testserver",
|
||||
hs=self.hs,
|
||||
|
||||
Reference in New Issue
Block a user