| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -22,7 +22,7 @@ A small number of constants live in the built-in namespace. They are: | |||
| 22 | 22 | An object frequently used to represent the absence of a value, as when | |
| 23 | 23 | default arguments are not passed to a function. Assignments to ``None`` | |
| 24 | 24 | are illegal and raise a :exc:`SyntaxError`. | |
| 25 | - ``None`` is the sole instance of the :data:`~types.NoneType` type. | ||
| 25 | + ``None`` is the sole instance of the :class:`~types.NoneType` type. | ||
| 26 | 26 | ||
| 27 | 27 | ||
| 28 | 28 | .. data:: NotImplemented | |
@@ -33,7 +33,7 @@ A small number of constants live in the built-in namespace. They are: | |||
| 33 | 33 | the other type; may be returned by the in-place binary special methods | |
| 34 | 34 | (e.g. :meth:`~object.__imul__`, :meth:`~object.__iand__`, etc.) for the same purpose. | |
| 35 | 35 | It should not be evaluated in a boolean context. | |
| 36 | - :data:`!NotImplemented` is the sole instance of the :data:`types.NotImplementedType` type. | ||
| 36 | + :data:`!NotImplemented` is the sole instance of the :class:`types.NotImplementedType` type. | ||
| 37 | 37 | ||
| 38 | 38 | .. note:: | |
| 39 | 39 | ||
@@ -68,7 +68,7 @@ A small number of constants live in the built-in namespace. They are: | |||
| 68 | 68 | The same as the ellipsis literal "``...``", an object frequently used to | |
| 69 | 69 | indicate that something is omitted. Assignment to ``Ellipsis`` is possible, but | |
| 70 | 70 | assignment to ``...`` raises a :exc:`SyntaxError`. | |
| 71 | - ``Ellipsis`` is the sole instance of the :data:`types.EllipsisType` type. | ||
| 71 | + ``Ellipsis`` is the sole instance of the :class:`types.EllipsisType` type. | ||
| 72 | 72 | ||
| 73 | 73 | ||
| 74 | 74 | .. data:: __debug__ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -143,7 +143,7 @@ If you instantiate any of these types, note that signatures may vary between Pyt | |||
| 143 | 143 | ||
| 144 | 144 | Standard names are defined for the following types: | |
| 145 | 145 | ||
| 146 | - .. data:: NoneType | ||
| 146 | + .. class:: NoneType | ||
| 147 | 147 | ||
| 148 | 148 | The type of :data:`None`. | |
| 149 | 149 | ||
@@ -233,7 +233,7 @@ Standard names are defined for the following types: | |||
| 233 | 233 | .. versionadded:: 3.7 | |
| 234 | 234 | ||
| 235 | 235 | ||
| 236 | - .. data:: NotImplementedType | ||
| 236 | + .. class:: NotImplementedType | ||
| 237 | 237 | ||
| 238 | 238 | The type of :data:`NotImplemented`. | |
| 239 | 239 | ||
@@ -273,7 +273,7 @@ Standard names are defined for the following types: | |||
| 273 | 273 | creating :class:`!ModuleType` instances which ensures the various | |
| 274 | 274 | attributes are set appropriately. | |
| 275 | 275 | ||
| 276 | - .. data:: EllipsisType | ||
| 276 | + .. class:: EllipsisType | ||
| 277 | 277 | ||
| 278 | 278 | The type of :data:`Ellipsis`. | |
| 279 | 279 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1446,8 +1446,8 @@ as a positional-only argument. | |||
| 1446 | 1446 | types | |
| 1447 | 1447 | ----- | |
| 1448 | 1448 | ||
| 1449 | - Reintroduce the :data:`types.EllipsisType`, :data:`types.NoneType` | ||
| 1450 | - and :data:`types.NotImplementedType` classes, providing a new set | ||
| 1449 | + Reintroduce the :class:`types.EllipsisType`, :class:`types.NoneType` | ||
| 1450 | + and :class:`types.NotImplementedType` classes, providing a new set | ||
| 1451 | 1451 | of types readily interpretable by type checkers. | |
| 1452 | 1452 | (Contributed by Bas van Beek in :issue:`41810`.) | |
| 1453 | 1453 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments