Skip to content

Commit 046e57a

Browse files
committed
Clarify that actx.array_types allows ABCs
1 parent a748f0e commit 046e57a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

arraycontext/context.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@
7575
7676
.. currentmodule:: arraycontext
7777
78-
The interface of an array context
79-
---------------------------------
78+
The :class:`ArrayContext` Interface
79+
-----------------------------------
8080
8181
.. autoclass:: ArrayContext
8282
@@ -278,8 +278,10 @@ class ArrayContext(ABC):
278278
279279
A :class:`tuple` of types that are the valid array classes the
280280
context can operate on. However, it is not necessary that *all* the
281-
:class:`ArrayContext`\ 's operations would be legal for the types in
282-
*array_types*.
281+
:class:`ArrayContext`\ 's operations are legal for the types in
282+
*array_types*. Note that this tuple is *only* intended for use
283+
with :func:`isinstance`. Other uses are not allowed. This allows
284+
for 'types' with overridden :meth:`class.__instancecheck__`.
283285
284286
.. automethod:: freeze
285287
.. automethod:: thaw

0 commit comments

Comments
 (0)