Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions arangoasync/typings.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
TypeAlias,
cast,
)
from warnings import warn

from multidict import CIMultiDictProxy, MultiDict

Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
Loading