HTools/Types.hs: more auto-repair types
[ganeti-local] / lib / ht.py
index eba209a..a449e82 100644 (file)
--- a/lib/ht.py
+++ b/lib/ht.py
@@ -259,6 +259,14 @@ def TList(val):
   return isinstance(val, list)
 
 
+@WithDesc("Tuple")
+def TTuple(val):
+  """Checks if the given value is a tuple.
+
+  """
+  return isinstance(val, tuple)
+
+
 @WithDesc("Dictionary")
 def TDict(val):
   """Checks if the given value is a dictionary.