[arvados] updated: 2.7.0-4982-gade2c46d49
git repository hosting
git at public.arvados.org
Wed Oct 11 16:41:36 UTC 2023
Summary of changes:
sdk/python/arvados/collection.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
via ade2c46d4922fff269f4708a0f5a623a3d10bc6c (commit)
via 5e63fe519acff84cda7307a4a2d96d5f3cb06759 (commit)
from c8c1fd28b0a587a91041e02da13918ca34a5ce6f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit ade2c46d4922fff269f4708a0f5a623a3d10bc6c
Author: Brett Smith <brett.smith at curii.com>
Date: Wed Oct 11 12:40:55 2023 -0400
19821: Bugfix type declarations for compatibility with Python<3.9
Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith at curii.com>
diff --git a/sdk/python/arvados/collection.py b/sdk/python/arvados/collection.py
index 197925b24b..0f2ec4c96f 100644
--- a/sdk/python/arvados/collection.py
+++ b/sdk/python/arvados/collection.py
@@ -1156,7 +1156,7 @@ class Collection(RichCollectionBase):
except errors.SyntaxError as e:
raise errors.ArgumentError("Error processing manifest text: %s", str(e)) from None
- def storage_classes_desired(self) -> list[str]:
+ def storage_classes_desired(self) -> List[str]:
"""Get this collection's `storage_classes_desired` value"""
return self._storage_classes_desired or []
@@ -1200,7 +1200,7 @@ class Collection(RichCollectionBase):
@synchronized
def known_past_version(
self,
- modified_at_and_portable_data_hash: tuple[Optional[str], Optional[str]]
+ modified_at_and_portable_data_hash: Tuple[Optional[str], Optional[str]]
) -> bool:
"""Indicate whether an API record for this collection has been seen before
commit 5e63fe519acff84cda7307a4a2d96d5f3cb06759
Author: Brett Smith <brett.smith at curii.com>
Date: Wed Oct 11 12:40:18 2023 -0400
19821: Improve consistency of Properties type
Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith at curii.com>
diff --git a/sdk/python/arvados/collection.py b/sdk/python/arvados/collection.py
index a96474549a..197925b24b 100644
--- a/sdk/python/arvados/collection.py
+++ b/sdk/python/arvados/collection.py
@@ -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
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list