MCPcopy Index your code
hub / github.com/RustPython/RustPython / __setattr__

Method __setattr__

Lib/typing.py:1286–1290  ·  view source on GitHub ↗
(self, attr, val)

Source from the content-addressed store, hash-verified

1284 raise AttributeError(attr)
1285
1286 def __setattr__(self, attr, val):
1287 if _is_dunder(attr) or attr in {'_name', '_inst', '_nparams', '_defaults'}:
1288 super().__setattr__(attr, val)
1289 else:
1290 setattr(self.__origin__, attr, val)
1291
1292 def __instancecheck__(self, obj):
1293 return self.__subclasscheck__(type(obj))

Callers

nothing calls this directly

Calls 3

superClass · 0.85
setattrFunction · 0.85
_is_dunderFunction · 0.70

Tested by

no test coverage detected