]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Update Sphinx directive for super from function to class (GH-25489)
authorGéry Ogam <gery.ogam@gmail.com>
Tue, 20 Apr 2021 18:58:02 +0000 (20:58 +0200)
committerGitHub <noreply@github.com>
Tue, 20 Apr 2021 18:58:02 +0000 (11:58 -0700)
Doc/library/functions.rst

index 30f62e69e7fb9f7f69f0b8fb2f1cac492671642c..72441f0dbfa57c921f91de849279b5c8dd2ed2ec 100644 (file)
@@ -1677,7 +1677,7 @@ are always available.  They are listed here in alphabetical order.
    .. versionchanged:: 3.8
       The *start* parameter can be specified as a keyword argument.
 
-.. function:: super([type[, object-or-type]])
+.. class:: super([type[, object-or-type]])
 
    Return a proxy object that delegates method calls to a parent or sibling
    class of *type*.  This is useful for accessing inherited methods that have