@@ -63,7 +63,7 @@ def __init__(
63
63
self ,
64
64
id_keys_to_objects : Optional [Dict [str , "STACObject_Type" ]] = None ,
65
65
hrefs_to_objects : Optional [Dict [str , "STACObject_Type" ]] = None ,
66
- ids_to_collections : Dict [str , "Collection_Type" ] = None ,
66
+ ids_to_collections : Optional [ Dict [str , "Collection_Type" ] ] = None ,
67
67
):
68
68
self .id_keys_to_objects = id_keys_to_objects or {}
69
69
self .hrefs_to_objects = hrefs_to_objects or {}
@@ -235,8 +235,12 @@ class CollectionCache:
235
235
236
236
def __init__ (
237
237
self ,
238
- cached_ids : Dict [str , Union ["Collection_Type" , Dict [str , Any ]]] = None ,
239
- cached_hrefs : Dict [str , Union ["Collection_Type" , Dict [str , Any ]]] = None ,
238
+ cached_ids : Optional [
239
+ Dict [str , Union ["Collection_Type" , Dict [str , Any ]]]
240
+ ] = None ,
241
+ cached_hrefs : Optional [
242
+ Dict [str , Union ["Collection_Type" , Dict [str , Any ]]]
243
+ ] = None ,
240
244
):
241
245
self .cached_ids = cached_ids or {}
242
246
self .cached_hrefs = cached_hrefs or {}
@@ -273,8 +277,12 @@ class ResolvedObjectCollectionCache(CollectionCache):
273
277
def __init__ (
274
278
self ,
275
279
resolved_object_cache : ResolvedObjectCache ,
276
- cached_ids : Dict [str , Union ["Collection_Type" , Dict [str , Any ]]] = None ,
277
- cached_hrefs : Dict [str , Union ["Collection_Type" , Dict [str , Any ]]] = None ,
280
+ cached_ids : Optional [
281
+ Dict [str , Union ["Collection_Type" , Dict [str , Any ]]]
282
+ ] = None ,
283
+ cached_hrefs : Optional [
284
+ Dict [str , Union ["Collection_Type" , Dict [str , Any ]]]
285
+ ] = None ,
278
286
):
279
287
super ().__init__ (cached_ids , cached_hrefs )
280
288
self .resolved_object_cache = resolved_object_cache
0 commit comments