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

Method __setattr__

diffusers/src/diffusers/configuration_utils.py:76–79  ·  view source on GitHub ↗
(self, name, value)

Source from the content-addressed store, hash-verified

74 raise Exception(f"You cannot use ``update`` on a {self.__class__.__name__} instance.")
75
76 def __setattr__(self, name, value):
77 if hasattr(self, "__frozen") and self.__frozen:
78 raise Exception(f"You cannot use ``__setattr__`` on a {self.__class__.__name__} instance.")
79 super().__setattr__(name, value)
80
81 def __setitem__(self, name, value):
82 if hasattr(self, "__frozen") and self.__frozen:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected