Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ repos:
rev: v1.0.2
hooks:
- id: sphinx-lint
args: [--enable=default-role]
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.37.1
hooks:
Expand Down
20 changes: 10 additions & 10 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ Python version in which each feature was added to :py:mod:`typing` and the
- :pep:`673`
* - :class:`sentinel`
- 3.15
- 4.14.0 (originally under the name `Sentinel`)
- 4.14.0 (originally under the name ``Sentinel``)
- :pep:`661`
* - :class:`TypeAliasType`
- 3.12
Expand Down Expand Up @@ -587,7 +587,7 @@ Special typing primitives
``typing_extensions`` backports various bug fixes and improvements
to ``TypedDict``.

Features backported by `typing_extensions` include:
Features backported by ``typing_extensions`` include:

* :py:class:`typing.TypedDict` does not store runtime information about which
(if any) keys are non-required in Python 3.8, and does not honor the
Expand Down Expand Up @@ -773,8 +773,8 @@ Special typing primitives

.. versionchanged:: 4.12.0

It is now disallowed to use a `TypeVar` with a default value after a
`TypeVarTuple` in a type parameter list. This matches the CPython
It is now disallowed to use a ``TypeVar`` with a default value after a
``TypeVarTuple`` in a type parameter list. This matches the CPython
implementation of PEP 696 on Python 3.13+.

.. versionchanged:: 4.16.0
Expand Down Expand Up @@ -1311,13 +1311,13 @@ Sentinel objects

- Sentinels can now be pickled. They are reduced as singletons, which
means that they also preserve their identity when copied or deep-copied.
- `Sentinel` has been renamed to `sentinel`. `Sentinel` is retained as a
- ``Sentinel`` has been renamed to ``sentinel``. ``Sentinel`` is retained as a
soft-deprecated alias, for backwards compatibility.
- The default repr of a sentinel `X = sentinel("X")` is now `X`, rather
than `<X>`.
- Passing `repr` as a positional argument to the constructor is deprecated.
- Passing `name` as a keyword argument to the constructor is deprecated.
- Subclassing `sentinel` is deprecated.
- The default repr of a sentinel ``X = sentinel("X")`` is now ``X``, rather
than ``<X>``.
- Passing ``repr`` as a positional argument to the constructor is deprecated.
- Passing ``name`` as a keyword argument to the constructor is deprecated.
- Subclassing ``sentinel`` is deprecated.
- Assigning arbitrary attributes to a sentinel is deprecated.


Expand Down
Loading