Skip to content

Commit 30d8a4d

Browse files
committed
Better type instance check in NumpyNonObjectArrayMetaclass
1 parent 1c0283f commit 30d8a4d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

arraycontext/impl/numpy/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@
6565

6666

6767
class NumpyNonObjectArrayMetaclass(type):
68-
def __instancecheck__(cls, instance: Any) -> bool:
68+
@override
69+
def __instancecheck__(cls, instance: object) -> bool:
6970
return isinstance(instance, np.ndarray) and instance.dtype != object
7071

7172

0 commit comments

Comments
 (0)