cls.__datatype = datatype
return super().__init_subclass__()
+ def __hash__(self):
+ return hash(tuple(sorted(self.items())))
+
+ def clear(self):
+ raise NotImplementedError()
+
+ def __delitem__(self, key):
+ raise NotImplementedError()
+
+ def __setitem__(self, key, value):
+ raise NotImplementedError()
+
+ def popitem(self) -> tuple:
+ raise NotImplementedError()
+
+ def pop(self, key, default=None):
+ raise NotImplementedError()
+
+ def update(self, entry, **kwargs):
+ raise NotImplementedError()
+
@walkmethod
def walk(clsself, match=None):
if match is None:
return super().__init__(mapping)
- def __hash__(self):
- return hash(tuple(sorted(self.items())))
-
def __iter__(self):
yield from self.__mapping.items()