ubuiltins: Document hash.

This commit is contained in:
Laurens Valk
2022-11-28 15:30:55 +01:00
parent 0ecf1cabde
commit 17c45c3245
+9 -1
View File
@@ -541,7 +541,15 @@ def hasattr(object: Any, name: _str) -> _bool:
def hash(object: Any) -> _int:
"""
Returns the hash value of the object (if it has one).
hash(object) -> int
Gets the hash value of an object, if the object supports it.
Arguments:
object: Object for which to get a hash value.
Returns:
The hash value.
"""