Revision ff8067cf lib/ht.py
b/lib/ht.py | ||
---|---|---|
360 | 360 |
return desc(TAnd(TList, lambda lst: compat.all(my_type(v) for v in lst))) |
361 | 361 |
|
362 | 362 |
|
363 |
TMaybeListOf = lambda item_type: TOr(TNone, TListOf(item_type)) |
|
364 |
|
|
365 |
|
|
363 | 366 |
def TDictOf(key_type, val_type): |
364 | 367 |
"""Checks a dict type for the type of its key/values. |
365 | 368 |
|
Also available in: Unified diff