From 7557f1959f09a5ae070d1ad3fc58a3d947c8a953 Mon Sep 17 00:00:00 2001 From: David Foster Date: Sun, 8 May 2022 13:28:39 -0600 Subject: [PATCH] PEP 362: Fix formatting of colons in field descriptions (#2590) --- pep-0362.txt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pep-0362.txt b/pep-0362.txt index 85e3d2222..0d001365d 100644 --- a/pep-0362.txt +++ b/pep-0362.txt @@ -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. @@ -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``. @@ -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.