MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / has_changes

Method has_changes

lib/sqlalchemy/orm/attributes.py:2404–2407  ·  view source on GitHub ↗

Return True if this :class:`.History` has changes.

(self)

Source from the content-addressed store, hash-verified

2402 return (self.unchanged or []) + (self.deleted or [])
2403
2404 def has_changes(self) -> bool:
2405 """Return True if this :class:`.History` has changes."""
2406
2407 return bool(self.added or self.deleted)
2408
2409 def _merge(self, added: Iterable[Any], deleted: Iterable[Any]) -> History:
2410 return History(

Callers 9

get_historyMethod · 0.80
_load_on_pk_identityFunction · 0.80
test_viewonlyMethod · 0.80
test_caseMethod · 0.80
create_versionFunction · 0.80

Calls

no outgoing calls

Tested by 6

test_viewonlyMethod · 0.64
test_caseMethod · 0.64