Skip to content

Commit

Permalink
Changed warning
Browse files Browse the repository at this point in the history
  • Loading branch information
apetenchea committed May 29, 2024
1 parent b6e74ca commit 8c1ef8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arango/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -1334,7 +1334,7 @@ def add_hash_index(
:rtype: dict
:raise arango.exceptions.IndexCreateError: If create fails.
"""
m = "add_hash_index is deprecated. Using add_index with {'type': 'persistent'} instead." # noqa: E501
m = "add_hash_index is deprecated. Using add_index with {'type': 'hash'} instead." # noqa: E501
warn(m, DeprecationWarning, stacklevel=2)

data: Json = {"type": "hash", "fields": fields}
Expand Down

0 comments on commit 8c1ef8e

Please sign in to comment.