def _is_gettext_promise(value):
    return isinstance(value, Promise) and (value._delegate_bytes or value._delegate_text)
dataset/ETHPy150Open charettes/django-mutant/mutant/db/fields/translation.py/_is_gettext_promise/original