ci(M01): use type.__setattr__ for stub class attr cache

Made-with: Cursor
This commit is contained in:
Michael Cahill 2026-03-07 21:17:46 -08:00
parent 91fcade97d
commit 8012e9d792

View file

@ -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})