MCPcopy Create free account
hub / github.com/MotrixLab/AiOS / pop_unsupported_items

Method pop_unsupported_items

detrsmpl/data/data_structures/human_data.py:746–751  ·  view source on GitHub ↗

Find every item with a key not in HumanData.SUPPORTED_KEYS, and pop it to save memory.

(self)

Source from the content-addressed store, hash-verified

744 dict.__setitem__(self, key, val)
745
746 def pop_unsupported_items(self) -> None:
747 """Find every item with a key not in HumanData.SUPPORTED_KEYS, and pop
748 it to save memory."""
749 for key in list(self.keys()):
750 if key not in self.__class__.SUPPORTED_KEYS:
751 self.pop(key)
752
753 def __check_key__(self, key: Any) -> _KeyCheck:
754 """Check whether the key matches definition in

Callers 1

set_key_strictMethod · 0.95

Calls 1

keysMethod · 0.45

Tested by

no test coverage detected