MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _default_value

Method _default_value

lib/sqlalchemy/orm/attributes.py:1061–1066  ·  view source on GitHub ↗

Produce an empty value for an uninitialized attribute.

(
        self, state: InstanceState[Any], dict_: _InstanceDict
    )

Source from the content-addressed store, hash-verified

1059 raise NotImplementedError()
1060
1061 def _default_value(
1062 self, state: InstanceState[Any], dict_: _InstanceDict
1063 ) -> Any:
1064 """Produce an empty value for an uninitialized attribute."""
1065
1066 raise NotImplementedError()
1067
1068 def get(
1069 self,

Callers 2

getMethod · 0.95
init_state_collectionFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected