Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbb1e57e

Browse files
[3.12]gh-104984: remove kwargs and starargs from Call & ClassDef (GH-104986) (#104987)
gh-104984: remove kwargs and starargs from Call & ClassDef (GH-104986)These fields are removed in025e9eb(cherry picked from commit61c1d67)Co-authored-by: Shaygan Hooshyari <sh.hooshyari@gmail.com>
1 parent97509ca commitbb1e57e

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

‎Doc/library/ast.rst

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ Expressions
481481
Comparison operator tokens.
482482

483483

484-
..class::Call(func, args, keywords, starargs, kwargs)
484+
..class::Call(func, args, keywords)
485485

486486
A function call. ``func`` is the function, which will often be a
487487
:class:`Name` or:class:`Attribute` object. Of the arguments:
@@ -491,7 +491,7 @@ Expressions
491491
arguments passed by keyword.
492492

493493
When creating a ``Call`` node, ``args`` and ``keywords`` are required, but
494-
they can be empty lists. ``starargs`` and ``kwargs`` are optional.
494+
they can be empty lists.
495495

496496
..doctest::
497497

@@ -1820,7 +1820,7 @@ Function and class definitions
18201820
type_ignores=[])
18211821

18221822

1823-
..class::ClassDef(name, bases, keywords,starargs, kwargs,body, decorator_list)
1823+
..class::ClassDef(name, bases, keywords, body, decorator_list)
18241824

18251825
A class definition.
18261826

@@ -1829,9 +1829,6 @@ Function and class definitions
18291829
* ``keywords`` is a list of:class:`keyword` nodes, principally for 'metaclass'.
18301830
Other keywords will be passed to the metaclass, as per `PEP-3115
18311831
<https://peps.python.org/pep-3115/>`_.
1832-
* ``starargs`` and ``kwargs`` are each a single node, as in a function call.
1833-
starargs will be expanded to join the list of base classes, and kwargs will
1834-
be passed to the metaclass.
18351832
* ``body`` is a list of nodes representing the code within the class
18361833
definition.
18371834
* ``decorator_list`` is a list of nodes, as in:class:`FunctionDef`.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp