MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / populate

Method populate

lib/sqlalchemy/orm/descriptor_props.py:664–672  ·  view source on GitHub ↗
(dest_dict: Dict[str, Any])

Source from the content-addressed store, hash-verified

662 attrs = [prop.key for prop in self.props]
663
664 def populate(dest_dict: Dict[str, Any]) -> None:
665 dest_dict.update(
666 {
667 key: val
668 for key, val in zip(
669 attrs, get_values(dest_dict.pop(self.key))
670 )
671 }
672 )
673
674 return populate
675

Callers

nothing calls this directly

Calls 2

updateMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected