We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77770fb commit 28ef358Copy full SHA for 28ef358
1 file changed
arraycontext/impl/numpy/__init__.py
@@ -65,7 +65,8 @@
65
66
67
class NumpyNonObjectArrayMetaclass(type):
68
- def __instancecheck__(cls, instance: Any) -> bool:
+ @override
69
+ def __instancecheck__(cls, instance: object) -> bool:
70
return isinstance(instance, np.ndarray) and instance.dtype != object
71
72
0 commit comments