@@ -1744,17 +1744,17 @@ aliases.
17441744Function and class definitions
17451745^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17461746
1747- .. class :: FunctionDef(name, type_params, args, body, decorator_list, returns, type_comment)
1747+ .. class :: FunctionDef(name, args, body, decorator_list, returns, type_comment, type_params )
17481748
17491749 A function definition.
17501750
17511751 * ``name `` is a raw string of the function name.
1752- * ``type_params `` is a list of :ref: `type parameters <ast-type-params >`.
17531752 * ``args `` is an :class: `arguments ` node.
17541753 * ``body `` is the list of nodes inside the function.
17551754 * ``decorator_list `` is the list of decorators to be applied, stored outermost
17561755 first (i.e. the first in the list will be applied last).
17571756 * ``returns `` is the return annotation.
1757+ * ``type_params `` is a list of :ref: `type parameters <ast-type-params >`.
17581758
17591759 .. attribute :: type_comment
17601760
@@ -1917,19 +1917,19 @@ Function and class definitions
19171917 type_ignores=[])
19181918
19191919
1920- .. class :: ClassDef(name, type_params, bases, keywords, body, decorator_list)
1920+ .. class :: ClassDef(name, bases, keywords, body, decorator_list, type_params )
19211921
19221922 A class definition.
19231923
19241924 * ``name `` is a raw string for the class name
1925- * ``type_params `` is a list of :ref: `type parameters <ast-type-params >`.
19261925 * ``bases `` is a list of nodes for explicitly specified base classes.
19271926 * ``keywords `` is a list of :class: `keyword ` nodes, principally for 'metaclass'.
19281927 Other keywords will be passed to the metaclass, as per `PEP-3115
19291928 <https://peps.python.org/pep-3115/> `_.
19301929 * ``body `` is a list of nodes representing the code within the class
19311930 definition.
19321931 * ``decorator_list `` is a list of nodes, as in :class: `FunctionDef `.
1932+ * ``type_params `` is a list of :ref: `type parameters <ast-type-params >`.
19331933
19341934 .. doctest ::
19351935
@@ -1961,7 +1961,7 @@ Function and class definitions
19611961Async and await
19621962^^^^^^^^^^^^^^^
19631963
1964- .. class :: AsyncFunctionDef(name, args, body, decorator_list, returns, type_comment)
1964+ .. class :: AsyncFunctionDef(name, args, body, decorator_list, returns, type_comment, type_params )
19651965
19661966 An ``async def `` function definition. Has the same fields as
19671967 :class: `FunctionDef `.
0 commit comments