MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / __reduce__

Method __reduce__

diffusers/src/diffusers/utils/outputs.py:126–131  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

124 super().__setattr__(key, value)
125
126 def __reduce__(self):
127 if not is_dataclass(self):
128 return super().__reduce__()
129 callable, _args, *remaining = super().__reduce__()
130 args = tuple(getattr(self, field.name) for field in fields(self))
131 return callable, args, *remaining
132
133 def to_tuple(self) -> Tuple[Any, ...]:
134 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected