Skip to content

Commit

Permalink
Clarify that actx.array_types allows ABCs
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Aug 5, 2024
1 parent 7cbe194 commit 04142ce
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions arraycontext/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@
.. currentmodule:: arraycontext
The interface of an array context
---------------------------------
The :class:`ArrayContext` Interface
-----------------------------------
.. autoclass:: ArrayContext
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 04142ce

Please sign in to comment.