From 04142ced75721ded75381fb05edb3396d002162c Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Wed, 31 Jul 2024 16:20:10 -0500 Subject: [PATCH] Clarify that actx.array_types allows ABCs --- arraycontext/context.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/arraycontext/context.py b/arraycontext/context.py index 1a400155..da6c9731 100644 --- a/arraycontext/context.py +++ b/arraycontext/context.py @@ -75,8 +75,8 @@ .. currentmodule:: arraycontext -The interface of an array context ---------------------------------- +The :class:`ArrayContext` Interface +----------------------------------- .. autoclass:: ArrayContext @@ -281,8 +281,10 @@ class ArrayContext(ABC): A :class:`tuple` of types that are the valid array classes the context can operate on. However, it is not necessary that *all* the - :class:`ArrayContext`\ 's operations would be legal for the types in - *array_types*. + :class:`ArrayContext`\ 's operations are legal for the types in + *array_types*. Note that this tuple is *only* intended for use + with :func:`isinstance`. Other uses are not allowed. This allows + for 'types' with overridden :meth:`class.__instancecheck__`. .. automethod:: freeze .. automethod:: thaw