def TDictOf(key_type, val_type):
  desc = WithDesc("Dictionary with keys of %s and values of %s" %
                  (Parens(key_type), Parens(val_type)))

  def fn(container):
    return (compat.all(key_type(v) for v in container.keys()) and
            compat.all(val_type(v) for v in container.values()))

  return desc(TAnd(TDict, fn))
Performs full text ranking.
dataset/ETHPy150Open ganeti/ganeti/lib/ht.py/TDictOf--crossover with--dataset/ETHPy150Open etianen/django-watson/src/watson/backends.py/MySQLSearchBackend.do_search_ranking