MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / add_state

Method add_state

lib/sqlalchemy/orm/loading.py:1546–1551  ·  view source on GitHub ↗
(self, state, overwrite)

Source from the content-addressed store, hash-verified

1544 self.load_keys = None
1545
1546 def add_state(self, state, overwrite):
1547 # the states for a polymorphic load here are all shared
1548 # within a single PostLoad object among multiple subtypes.
1549 # Filtering of callables on a per-subclass basis needs to be done at
1550 # the invocation level
1551 self.states[state] = overwrite
1552
1553 def invoke(self, context, path):
1554 if not self.states:

Callers 1

_instanceFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected