Skip to content

Commit 1fc5bf2

Browse files
Seluj78JulienPalard
authored andcommitted
Doc: Fixed missing punctuation in datamodel.rst (GH-12581)
1 parent bc284f0 commit 1fc5bf2

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

Doc/reference/datamodel.rst

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -475,13 +475,13 @@ Callable types
475475
| :attr:`__doc__` | The function's documentation | Writable |
476476
| | string, or ``None`` if | |
477477
| | unavailable; not inherited by | |
478-
| | subclasses | |
478+
| | subclasses. | |
479479
+-------------------------+-------------------------------+-----------+
480-
| :attr:`~definition.\ | The function's name | Writable |
480+
| :attr:`~definition.\ | The function's name. | Writable |
481481
| __name__` | | |
482482
+-------------------------+-------------------------------+-----------+
483483
| :attr:`~definition.\ | The function's | Writable |
484-
| __qualname__` | :term:`qualified name` | |
484+
| __qualname__` | :term:`qualified name`. | |
485485
| | | |
486486
| | .. versionadded:: 3.3 | |
487487
+-------------------------+-------------------------------+-----------+
@@ -493,7 +493,7 @@ Callable types
493493
| | argument values for those | |
494494
| | arguments that have defaults, | |
495495
| | or ``None`` if no arguments | |
496-
| | have a default value | |
496+
| | have a default value. | |
497497
+-------------------------+-------------------------------+-----------+
498498
| :attr:`__code__` | The code object representing | Writable |
499499
| | the compiled function body. | |
@@ -1857,11 +1857,11 @@ passed through to all metaclass operations described below.
18571857

18581858
When a class definition is executed, the following steps occur:
18591859

1860-
* MRO entries are resolved
1861-
* the appropriate metaclass is determined
1862-
* the class namespace is prepared
1863-
* the class body is executed
1864-
* the class object is created
1860+
* MRO entries are resolved;
1861+
* the appropriate metaclass is determined;
1862+
* the class namespace is prepared;
1863+
* the class body is executed;
1864+
* the class object is created.
18651865

18661866

18671867
Resolving MRO entries
@@ -1885,11 +1885,11 @@ Determining the appropriate metaclass
18851885

18861886
The appropriate metaclass for a class definition is determined as follows:
18871887

1888-
* if no bases and no explicit metaclass are given, then :func:`type` is used
1888+
* if no bases and no explicit metaclass are given, then :func:`type` is used;
18891889
* if an explicit metaclass is given and it is *not* an instance of
1890-
:func:`type`, then it is used directly as the metaclass
1890+
:func:`type`, then it is used directly as the metaclass;
18911891
* if an instance of :func:`type` is given as the explicit metaclass, or
1892-
bases are defined, then the most derived metaclass is used
1892+
bases are defined, then the most derived metaclass is used.
18931893

18941894
The most derived metaclass is selected from the explicitly specified
18951895
metaclass (if any) and the metaclasses (i.e. ``type(cls)``) of all specified
@@ -1976,7 +1976,7 @@ invoked after creating the class object:
19761976
* first, ``type.__new__`` collects all of the descriptors in the class
19771977
namespace that define a :meth:`~object.__set_name__` method;
19781978
* second, all of these ``__set_name__`` methods are called with the class
1979-
being defined and the assigned name of that particular descriptor; and
1979+
being defined and the assigned name of that particular descriptor;
19801980
* finally, the :meth:`~object.__init_subclass__` hook is called on the
19811981
immediate parent of the new class in its method resolution order.
19821982

@@ -2048,7 +2048,7 @@ Emulating generic types
20482048
-----------------------
20492049

20502050
One can implement the generic class syntax as specified by :pep:`484`
2051-
(for example ``List[int]``) by defining a special method
2051+
(for example ``List[int]``) by defining a special method:
20522052

20532053
.. classmethod:: object.__class_getitem__(cls, key)
20542054

0 commit comments

Comments
 (0)