Skip to content
Snippets Groups Projects
Commit ab98e236 authored by Michele Tartara's avatar Michele Tartara
Browse files

Add TMaybeList as a new type for parameters


This will be used as the type for the reason trail parameter.

Signed-off-by: default avatarMichele Tartara <mtartara@google.com>
Reviewed-by: default avatarHelga Velroyen <helgav@google.com>
parent 1cc55342
No related branches found
No related tags found
No related merge requests found
......@@ -356,6 +356,9 @@ TMaybeBool = TMaybe(TBool)
#: Maybe a dictionary (dict or None)
TMaybeDict = TMaybe(TDict)
#: Maybe a list (list or None)
TMaybeList = TMaybe(TList)
#: a non-negative integer (value >= 0)
TNonNegativeInt = \
TAnd(TInt, WithDesc("EqualOrGreaterThanZero")(lambda v: v >= 0))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment