Skip to content

Commit e779777

Browse files
authored
gh-141510: Mention frozendict in dict documentation (#144934)
test_genericalias now tests also frozendict.
1 parent d1b541b commit e779777

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

Doc/library/stdtypes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5590,8 +5590,8 @@ can be used interchangeably to index the same dictionary entry.
55905590

55915591

55925592
.. seealso::
5593-
:class:`types.MappingProxyType` can be used to create a read-only view
5594-
of a :class:`dict`.
5593+
:class:`frozendict` and :class:`types.MappingProxyType` can be used to
5594+
create a read-only view of a :class:`dict`.
55955595

55965596
.. _thread-safety-dict:
55975597

Lib/pydoc_data/topics.py

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Lib/test/test_genericalias.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@
101101

102102
class BaseTest(unittest.TestCase):
103103
"""Test basics."""
104-
generic_types = [type, tuple, list, dict, set, frozenset, enumerate, memoryview,
104+
generic_types = [type, tuple, list, dict, frozendict,
105+
set, frozenset, enumerate, memoryview,
105106
slice,
106107
defaultdict, deque,
107108
SequenceMatcher,

0 commit comments

Comments
 (0)