We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ffa486 commit 1efdb8cCopy full SHA for 1efdb8c
arraycontext/context.py
@@ -196,6 +196,7 @@ class ArrayContext(ABC):
196
with :func:`isinstance`. Other uses are not allowed. This allows
197
for 'types' with overridden :meth:`type.__instancecheck__`.
198
199
+ .. automethod:: is_array_type
200
.. automethod:: freeze
201
.. automethod:: thaw
202
.. automethod:: freeze_thaw
@@ -483,9 +484,8 @@ def outline(self,
483
484
"""
485
return f
486
- @classmethod
487
- def is_array_type(cls, obj: object) -> TypeIs[Array]:
488
- return isinstance(obj, cls.array_types)
+ def is_array_type(self, obj: object) -> TypeIs[Array]:
+ return isinstance(obj, self.array_types)
489
490
# undocumented for now
491
@property
0 commit comments