Skip to content
Snippets Groups Projects
Unverified Commit 853f5014 authored by Alexandru Fikl's avatar Alexandru Fikl Committed by Alexandru Fikl
Browse files

improve docs

parent 7b03174b
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment