Skip to content

Commit 96954f7

Browse files
committed
Docs: improve class references linking in functions.rst
With Linklint we link only first reference in a paragraph. Explicitly leave only reference which is expected to link. In dict, frozendict, frozenset and set reference docs.
1 parent 7a468a1 commit 96954f7

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Doc/library/functions.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ are always available. They are listed here in alphabetical order.
484484
dict(iterable, /, **kwargs)
485485
:noindex:
486486
487-
Create a new dictionary. The :class:`dict` object is the dictionary class.
487+
Create a new dictionary. The :class:`!dict` object is the dictionary class.
488488
See :class:`dict` and :ref:`typesmapping` for documentation about this class.
489489

490490
For other containers see the built-in :class:`frozendict`, :class:`list`,
@@ -872,7 +872,7 @@ are always available. They are listed here in alphabetical order.
872872
frozendict(iterable, /, **kwargs)
873873
:noindex:
874874
875-
Create a new frozen dictionary. The :class:`frozendict` object is a built-in class.
875+
Create a new frozen dictionary. The :class:`!frozendict` object is a built-in class.
876876
See :class:`frozendict` and :ref:`typesmapping` for documentation about this class.
877877

878878
For other containers see the built-in :class:`dict`, :class:`list`, :class:`set`,
@@ -885,8 +885,8 @@ are always available. They are listed here in alphabetical order.
885885
.. class:: frozenset(iterable=(), /)
886886
:noindex:
887887

888-
Return a new :class:`frozenset` object, optionally with elements taken from
889-
*iterable*. ``frozenset`` is a built-in class. See :class:`frozenset` and
888+
Return a new :class:`!frozenset` object, optionally with elements taken from
889+
*iterable*. :class:`!frozenset` is a built-in class. See :class:`frozenset` and
890890
:ref:`types-set` for documentation about this class.
891891

892892
For other containers see the built-in :class:`set`, :class:`list`,
@@ -1813,8 +1813,8 @@ are always available. They are listed here in alphabetical order.
18131813
.. class:: set(iterable=(), /)
18141814
:noindex:
18151815

1816-
Return a new :class:`set` object, optionally with elements taken from
1817-
*iterable*. ``set`` is a built-in class. See :class:`set` and
1816+
Return a new :class:`!set` object, optionally with elements taken from
1817+
*iterable*. :class:`!set` is a built-in class. See :class:`set` and
18181818
:ref:`types-set` for documentation about this class.
18191819

18201820
For other containers see the built-in :class:`frozenset`, :class:`list`,

0 commit comments

Comments
 (0)