Skip to content

Commit

Permalink
ubuiltins: Document super.
Browse files Browse the repository at this point in the history
  • Loading branch information
laurensvalk committed Nov 28, 2022
1 parent aeeed15 commit 73c4a44
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/ubuiltins/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""


Expand Down

0 comments on commit 73c4a44

Please sign in to comment.