MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / getter

Method getter

lib/sqlalchemy/ext/associationproxy.py:545–546  ·  view source on GitHub ↗
(instance: Any)

Source from the content-addressed store, hash-verified

543 _getter = operator.attrgetter(attr)
544
545 def getter(instance: Any) -> Optional[Any]:
546 return _getter(instance) if instance is not None else None
547
548 if collection_class is dict:
549

Callers 3

_getMethod · 0.45
popMethod · 0.45
_getMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected