def coerce_posf(thing):
    if isinstance(thing, tuple):
        return PosF(*thing)
    if isinstance(thing, (int, float)):
        return PosF(thing, thing)
    msg = "Cannot coerce object of type '%s' to a PosF"
    raise ValueError(msg % type(thing).__name__)
Indicate if ``user1`` and ``user2`` are friends.
dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/widgets/popup_view.py/coerce_posf--crossover with--dataset/ETHPy150Open muhuk/django-simple-friends/friends/models.py/FriendshipManager.are_friends