From 97fe8a57545e1912d15a47e02e20679fee2a2ae1 Mon Sep 17 00:00:00 2001 From: Alex Petenchea Date: Fri, 24 Apr 2026 18:06:25 +0800 Subject: [PATCH] 4.0: deprecate attributes --- arangoasync/typings.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arangoasync/typings.py b/arangoasync/typings.py index 8918650..2e3f4e3 100644 --- a/arangoasync/typings.py +++ b/arangoasync/typings.py @@ -12,6 +12,7 @@ TypeAlias, cast, ) +from warnings import warn from multidict import CIMultiDictProxy, MultiDict @@ -677,6 +678,8 @@ def sync_by_revision(self) -> Optional[bool]: @property def status_string(self) -> Optional[str]: + m = "statusString attribute has been removed in ArangoDB 4.0" + warn(m, DeprecationWarning, stacklevel=2) return self._data.get("statusString") @property @@ -701,6 +704,8 @@ def type(self) -> CollectionType: @property def status(self) -> CollectionStatus: + m = "status attribute has been removed in ArangoDB 4.0" + warn(m, DeprecationWarning, stacklevel=2) return CollectionStatus.from_int(self._data["status"]) @property