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

Method __hash__

box/box.py:485–491  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

483 return output
484
485 def __hash__(self):
486 if self._box_config["frozen_box"]:
487 hashing = 54321
488 for item in self.items():
489 hashing ^= hash(item)
490 return hashing
491 raise BoxTypeError('unhashable type: "Box"')
492
493 def __dir__(self) -> list[str]:
494 items = set(super().__dir__())

Callers

nothing calls this directly

Calls 2

itemsMethod · 0.95
BoxTypeErrorClass · 0.90

Tested by

no test coverage detected