diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 6f798f02e17899..a8f693f4879025 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -5590,8 +5590,8 @@ can be used interchangeably to index the same dictionary entry. .. seealso:: - :class:`types.MappingProxyType` can be used to create a read-only view - of a :class:`dict`. + :class:`frozendict` and :class:`types.MappingProxyType` can be used to + create a read-only view of a :class:`dict`. .. _thread-safety-dict: diff --git a/Lib/pydoc_data/topics.py b/Lib/pydoc_data/topics.py index 32cf9a995bae3d..dc09c5fd47affe 100644 --- a/Lib/pydoc_data/topics.py +++ b/Lib/pydoc_data/topics.py @@ -3676,8 +3676,8 @@ def f() -> annotation: ... * a class that inherits from any of the above - The standard library classes "dict" and "types.MappingProxyType" - are mappings. + The standard library classes "dict", "frozendict" + and "types.MappingProxyType" are mappings. [4] A string literal appearing as the first statement in the function body is transformed into the function’s "__doc__" attribute and @@ -13620,8 +13620,8 @@ class dict(iterable, /, **kwargs) See also: - "types.MappingProxyType" can be used to create a read-only view of a - "dict". + "frozendict" and "types.MappingProxyType" can be used to create a read-only + view of a "dict". Dictionary view objects diff --git a/Lib/test/test_genericalias.py b/Lib/test/test_genericalias.py index 2b9cee6433b5b8..a5969b7a47d948 100644 --- a/Lib/test/test_genericalias.py +++ b/Lib/test/test_genericalias.py @@ -101,7 +101,8 @@ class BaseTest(unittest.TestCase): """Test basics.""" - generic_types = [type, tuple, list, dict, set, frozenset, enumerate, memoryview, + generic_types = [type, tuple, list, dict, frozendict, + set, frozenset, enumerate, memoryview, slice, defaultdict, deque, SequenceMatcher,