@contextmanager
def size_hint_guard(obj):
    old_hint = obj.widget_item.sizeHint()
    yield
    new_hint = obj.widget_item.sizeHint()
    if old_hint != new_hint:
        obj.size_hint_updated()
Sets up a RT to RT communication channel, only needed if the peer can't be found in storage.
dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/qt/qt_constraints_widget.py/size_hint_guard--crossover with--dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/runtime/north/calvin_node.py/Node.peersetup