We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b4e2f2 commit 42f8de8Copy full SHA for 42f8de8
1 file changed
arraycontext/context.py
@@ -286,6 +286,9 @@ def _get_fake_numpy_namespace(self) -> Any:
286
from .fake_numpy import BaseFakeNumpyNamespace
287
return BaseFakeNumpyNamespace(self)
288
289
+ def __hash__(self) -> int:
290
+ raise TypeError(f"unhashable type: '{type(self).__name__}'")
291
+
292
@abstractmethod
293
def empty(self,
294
shape: Union[int, Tuple[int, ...]],
0 commit comments