@@ -120,26 +120,26 @@ The class can be used to simulate nested scopes and is useful in templating.
120120
121121.. seealso ::
122122
123- * The `MultiContext class
124- <https://github.com/enthought/codetools/blob/4.0.0/codetools/contexts/multi_context.py> `_
125- in the Enthought `CodeTools package
126- <https://github.com/enthought/codetools> `_ has options to support
127- writing to any mapping in the chain.
123+ * The `MultiContext class
124+ <https://github.com/enthought/codetools/blob/4.0.0/codetools/contexts/multi_context.py> `_
125+ in the Enthought `CodeTools package
126+ <https://github.com/enthought/codetools> `_ has options to support
127+ writing to any mapping in the chain.
128128
129- * Django's `Context class
130- <https://github.com/django/django/blob/main/django/template/context.py> `_
131- for templating is a read-only chain of mappings. It also features
132- pushing and popping of contexts similar to the
133- :meth: `~collections.ChainMap.new_child ` method and the
134- :attr: `~collections.ChainMap.parents ` property.
129+ * Django's `Context class
130+ <https://github.com/django/django/blob/main/django/template/context.py> `_
131+ for templating is a read-only chain of mappings. It also features
132+ pushing and popping of contexts similar to the
133+ :meth: `~collections.ChainMap.new_child ` method and the
134+ :attr: `~collections.ChainMap.parents ` property.
135135
136- * The `Nested Contexts recipe
137- <https://code.activestate.com/recipes/577434/> `_ has options to control
138- whether writes and other mutations apply only to the first mapping or to
139- any mapping in the chain.
136+ * The `Nested Contexts recipe
137+ <https://code.activestate.com/recipes/577434/> `_ has options to control
138+ whether writes and other mutations apply only to the first mapping or to
139+ any mapping in the chain.
140140
141- * A `greatly simplified read-only version of Chainmap
142- <https://code.activestate.com/recipes/305268/> `_.
141+ * A `greatly simplified read-only version of Chainmap
142+ <https://code.activestate.com/recipes/305268/> `_.
143143
144144
145145:class: `ChainMap ` Examples and Recipes
@@ -429,22 +429,22 @@ or subtracting from an empty counter.
429429
430430.. seealso ::
431431
432- * `Bag class <https://www.gnu.org/software/smalltalk/manual-base/html_node/Bag.html >`_
433- in Smalltalk.
432+ * `Bag class <https://www.gnu.org/software/smalltalk/manual-base/html_node/Bag.html >`_
433+ in Smalltalk.
434434
435- * Wikipedia entry for `Multisets <https://en.wikipedia.org/wiki/Multiset >`_.
435+ * Wikipedia entry for `Multisets <https://en.wikipedia.org/wiki/Multiset >`_.
436436
437- * `C++ multisets <http://www.java2s.com/Tutorial/Cpp/0380__set-multiset/Catalog0380__set-multiset.htm >`_
438- tutorial with examples.
437+ * `C++ multisets <http://www.java2s.com/Tutorial/Cpp/0380__set-multiset/Catalog0380__set-multiset.htm >`_
438+ tutorial with examples.
439439
440- * For mathematical operations on multisets and their use cases, see
441- *Knuth, Donald. The Art of Computer Programming Volume II,
442- Section 4.6.3, Exercise 19 *.
440+ * For mathematical operations on multisets and their use cases, see
441+ *Knuth, Donald. The Art of Computer Programming Volume II,
442+ Section 4.6.3, Exercise 19 *.
443443
444- * To enumerate all distinct multisets of a given size over a given set of
445- elements, see :func: `itertools.combinations_with_replacement `::
444+ * To enumerate all distinct multisets of a given size over a given set of
445+ elements, see :func: `itertools.combinations_with_replacement `::
446446
447- map(Counter, combinations_with_replacement('ABC', 2)) # --> AA AB AC BB BC CC
447+ map(Counter, combinations_with_replacement('ABC', 2)) # --> AA AB AC BB BC CC
448448
449449
450450:class: `deque ` objects
@@ -1062,20 +1062,20 @@ fields:
10621062
10631063.. seealso ::
10641064
1065- * See :class: `typing.NamedTuple ` for a way to add type hints for named
1066- tuples. It also provides an elegant notation using the :keyword: `class `
1067- keyword::
1065+ * See :class: `typing.NamedTuple ` for a way to add type hints for named
1066+ tuples. It also provides an elegant notation using the :keyword: `class `
1067+ keyword::
10681068
1069- class Component(NamedTuple):
1070- part_number: int
1071- weight: float
1072- description: Optional[str] = None
1069+ class Component(NamedTuple):
1070+ part_number: int
1071+ weight: float
1072+ description: Optional[str] = None
10731073
1074- * See :meth: `types.SimpleNamespace ` for a mutable namespace based on an
1075- underlying dictionary instead of a tuple.
1074+ * See :meth: `types.SimpleNamespace ` for a mutable namespace based on an
1075+ underlying dictionary instead of a tuple.
10761076
1077- * The :mod: `dataclasses ` module provides a decorator and functions for
1078- automatically adding generated special methods to user-defined classes.
1077+ * The :mod: `dataclasses ` module provides a decorator and functions for
1078+ automatically adding generated special methods to user-defined classes.
10791079
10801080
10811081:class: `OrderedDict ` objects
0 commit comments