ubuiltins: Document super.

This commit is contained in:
Laurens Valk
2022-11-28 16:17:36 +01:00
parent aeeed159d7
commit 73c4a449ab
+9 -2
View File
@@ -1220,8 +1220,15 @@ def super(type: _type, object_or_type: Any) -> _type:
def super(*args):
"""
Returns an object that delegates method calls to a parent or sibling class
of ``type``.
super() -> type
super(type) -> type
super(type, object_or_type) -> type
Gets an object that delegates method calls to a parent, or a sibling class
of the given type.
Returns:
The matching `super()` object.
"""