MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _refuse_empty

Method _refuse_empty

lib/sqlalchemy/orm/collections.py:520–524  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

518 )
519
520 def _refuse_empty(self) -> NoReturn:
521 raise sa_exc.InvalidRequestError(
522 "This is a special 'empty' collection which cannot accommodate "
523 "internal mutation operations"
524 )
525
526 def append_without_event(self, item: Any) -> None:
527 """Add or restore an entity to the collection, firing no events."""

Callers 5

append_without_eventMethod · 0.95
remove_without_eventMethod · 0.95
clear_with_eventMethod · 0.95
clear_without_eventMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected