common.versioned_state
bump_state_version_if_modified
def bump_state_version_if_modified(
state: TVersionedState,
exclude_attrs: List[str] = None) -> Tuple[int, str, str]
Bumps the state
version and version hash if content modified, returns (new version, new hash, old hash) tuple