From 73c4a449aba90bc8b3e2717c2ace7880dae24640 Mon Sep 17 00:00:00 2001 From: Laurens Valk Date: Mon, 28 Nov 2022 16:16:28 +0100 Subject: [PATCH] ubuiltins: Document super. --- src/ubuiltins/__init__.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/ubuiltins/__init__.py b/src/ubuiltins/__init__.py index 8dd9db9..66c6fed 100644 --- a/src/ubuiltins/__init__.py +++ b/src/ubuiltins/__init__.py @@ -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. """