MCPcopy Create free account
hub / github.com/cdgriffith/Box / __hash__

Method __hash__

box/box.py:494–500  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

492 return output
493
494 def __hash__(self):
495 if self._box_config["frozen_box"]:
496 hashing = 54321
497 for item in self.items():
498 hashing ^= hash(item)
499 return hashing
500 raise BoxTypeError('unhashable type: "Box"')
501
502 def __dir__(self) -> list[str]:
503 items = set(super().__dir__())

Callers

nothing calls this directly

Calls 2

itemsMethod · 0.95
BoxTypeErrorClass · 0.90

Tested by

no test coverage detected