21639: Add type hint to cachelist
authorPeter Amstutz <peter.amstutz@curii.com>
Thu, 4 Apr 2024 15:57:54 +0000 (11:57 -0400)
committerPeter Amstutz <peter.amstutz@curii.com>
Thu, 4 Apr 2024 15:57:54 +0000 (11:57 -0400)
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

sdk/python/arvados/diskcache.py

index a0b3bbb7c952344f8db1af3d4f42f13b6c28015c..528a7d28b58146af1a33eac0ada4b746a9eaa12d 100644 (file)
@@ -244,7 +244,7 @@ class DiskCacheSlot(object):
 
         # Map in all the files we found, up to maxslots, if we exceed
         # maxslots, start throwing things out.
-        cachelist = collections.OrderedDict()
+        cachelist: collections.OrderedDict = collections.OrderedDict()
         for b in blocks:
             got = DiskCacheSlot.get_from_disk(b[0], cachedir)
             if got is None: