mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-03-22 06:10:51 -07:00
ci(M01): use type.__setattr__ for stub class attr cache
Made-with: Cursor
This commit is contained in:
parent
91fcade97d
commit
8012e9d792
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ def _make_stub_class(name):
|
|||
except AttributeError:
|
||||
if attr.isupper() or (attr and attr[0].isupper() and "_" in attr):
|
||||
d = {}
|
||||
object.__setattr__(cls, attr, d) # cache for future access
|
||||
type.__setattr__(cls, attr, d) # cache for future access
|
||||
return d
|
||||
return _noop
|
||||
return _Meta(name, (), {"forward": _noop})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue