MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _set

Method _set

lib/sqlalchemy/ext/hybrid.py:1525–1528  ·  view source on GitHub ↗
(self, **kw: Any)

Source from the content-addressed store, hash-verified

1523 self.attr = attr
1524
1525 def _set(self, **kw: Any) -> hybrid_property[_TE]:
1526 for k, v in kw.items():
1527 setattr(self.attr, k, _unwrap_classmethod(v))
1528 return self.attr
1529
1530 def getter(self, fget: _HybridGetterType[_TE]) -> hybrid_property[_TE]:
1531 return self._set(fget=fget)

Callers 7

getterMethod · 0.95
setterMethod · 0.95
deleterMethod · 0.95
expressionMethod · 0.95
comparatorMethod · 0.95
update_expressionMethod · 0.95
bulk_dmlMethod · 0.95

Calls 2

_unwrap_classmethodFunction · 0.85
itemsMethod · 0.45

Tested by

no test coverage detected