MCPcopy Create free account
hub / github.com/TencentARC/BrushNet / setdefault

Method setdefault

src/diffusers/utils/outputs.py:98–99  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

96 raise Exception(f"You cannot use ``__delitem__`` on a {self.__class__.__name__} instance.")
97
98 def setdefault(self, *args, **kwargs):
99 raise Exception(f"You cannot use ``setdefault`` on a {self.__class__.__name__} instance.")
100
101 def pop(self, *args, **kwargs):
102 raise Exception(f"You cannot use ``pop`` on a {self.__class__.__name__} instance.")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected