19821: Improve consistency of Properties type
[arvados.git] / sdk / python / arvados / collection.py
index a96474549a12951ef9d1c09de41a4023c489d942..197925b24be95f6d6b6f769b9c3a7d9166390e75 100644 (file)
@@ -86,7 +86,7 @@ ChangeType = Literal[ADD, DEL, MOD, TOK]
 CollectionItem = Union[ArvadosFile, 'Collection']
 ChangeCallback = Callable[[ChangeType, 'Collection', str, CollectionItem], object]
 CreateType = Literal[COLLECTION, FILE]
-Properties = Mapping[str, Any]
+Properties = Dict[str, Any]
 StorageClasses = List[str]
 
 class CollectionBase(object):
@@ -1163,7 +1163,7 @@ class Collection(RichCollectionBase):
     def root_collection(self) -> 'Collection':
         return self
 
-    def get_properties(self) -> dict[str, Any]:
+    def get_properties(self) -> Properties:
         """Get this collection's properties
 
         This method always returns a dict. If this collection object does not