From 8ebcab0191bf1cae662d1048d7acb64ebd70a382 Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
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 71121d2..3ccc357 100644
--- a/arraycontext/context.py
+++ b/arraycontext/context.py
@@ -75,8 +75,8 @@ actual array contexts:
 
 .. currentmodule:: arraycontext
 
-The interface of an array context
----------------------------------
+The :class:`ArrayContext` Interface
+-----------------------------------
 
 .. autoclass:: ArrayContext
 
@@ -278,8 +278,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
-- 
GitLab