diff --git a/arraycontext/container/__init__.py b/arraycontext/container/__init__.py index 53835333aec5fa59f5e1fdc562b1e11421063cd6..4c93d523fddfc8085ad5dbdf4d5380139261b1ce 100644 --- a/arraycontext/container/__init__.py +++ b/arraycontext/container/__init__.py @@ -125,7 +125,7 @@ def serialize_container(ary: ArrayContainer) -> Iterable[Tuple[Any, Any]]: the control of the container class. However, the order is required to be deterministic, i.e. two calls to :func:`serialize_container` on array containers of the same types with the same number of - sub-arrays should result in an iterable with the keys in the same + sub-arrays must result in an iterable with the keys in the same order. If *ary* is mutable, the serialization function is not required to ensure diff --git a/arraycontext/container/traversal.py b/arraycontext/container/traversal.py index 8cbd470caf1f85cf8b37da93a63473a92596561c..c951073a24ed2af52be26fdd8599fb36b7bcde8b 100644 --- a/arraycontext/container/traversal.py +++ b/arraycontext/container/traversal.py @@ -554,7 +554,7 @@ def flatten(ary: ArrayOrContainerT, actx: ArrayContext) -> Any: def unflatten( template: ArrayOrContainerT, ary: Any, actx: ArrayContext) -> ArrayOrContainerT: - """Unflatten an array produced by :func:`flatten` back into an + """Unflatten an array *ary* produced by :func:`flatten` back into an :class:`~arraycontext.ArrayContainer`. The order and sizes of each slice into *ary* are determined by the