diff --git a/arraycontext/container/__init__.py b/arraycontext/container/__init__.py index ca139353ecd8d65c50268fece302257509add92c..55deb90cc8cf5adc5697d1b0f83f8b61cf667194 100644 --- a/arraycontext/container/__init__.py +++ b/arraycontext/container/__init__.py @@ -173,9 +173,7 @@ def is_array_container_type(cls: type) -> bool: function will say that :class:`numpy.ndarray` is an array container type, only object arrays *actually are* array containers. """ - assert isinstance(cls, type), \ - f"must pass a type, not an instance: '{cls!r}'" - assert hasattr(cls, "__mro__"), "'cls' has no attribute '__mro__': " + assert isinstance(cls, type), f"must pass a {type!r}, not a '{cls!r}'" return ( cls is ArrayContainer