Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PEP 362: Fix formatting of colons in field descriptions #2590

Merged
merged 1 commit into from
May 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions pep-0362.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ it stores a `Parameter object`_ in its ``parameters`` collection.

A Signature object has the following public attributes and methods:

* return_annotation : object
* return_annotation \: object
The "return" annotation for the function. If the function
has no "return" annotation, this attribute is set to
``Signature.empty``.

* parameters : OrderedDict
* parameters \: OrderedDict
An ordered mapping of parameters' names to the corresponding
Parameter objects.

Expand Down Expand Up @@ -134,16 +134,16 @@ function parameter.

A Parameter object has the following public attributes and methods:

* name : str
* name \: str
The name of the parameter as a string. Must be a valid
python identifier name (with the exception of ``POSITIONAL_ONLY``
parameters, which can have it set to ``None``.)

* default : object
* default \: object
The default value for the parameter. If the parameter has no
default value, this attribute is set to ``Parameter.empty``.

* annotation : object
* annotation \: object
The annotation for the parameter. If the parameter has no
annotation, this attribute is set to ``Parameter.empty``.

Expand Down Expand Up @@ -220,14 +220,14 @@ to the function's parameters.

Has the following public attributes:

* arguments : OrderedDict
* arguments \: OrderedDict
An ordered, mutable mapping of parameters' names to arguments' values.
Contains only explicitly bound arguments. Arguments for
which ``bind()`` relied on a default value are skipped.
* args : tuple
* args \: tuple
Tuple of positional arguments values. Dynamically computed from
the 'arguments' attribute.
* kwargs : dict
* kwargs \: dict
Dict of keyword arguments values. Dynamically computed from
the 'arguments' attribute.

Expand Down