Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions arraycontext/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ class ArrayContext(ABC):
with :func:`isinstance`. Other uses are not allowed. This allows
for 'types' with overridden :meth:`type.__instancecheck__`.

.. automethod:: is_array_type
.. automethod:: freeze
.. automethod:: thaw
.. automethod:: freeze_thaw
Expand Down Expand Up @@ -483,9 +484,8 @@ def outline(self,
"""
return f

@classmethod
def is_array_type(cls, obj: object) -> TypeIs[Array]:
return isinstance(obj, cls.array_types)
def is_array_type(self, obj: object) -> TypeIs[Array]:
return isinstance(obj, self.array_types)

# undocumented for now
@property
Expand Down
Loading