Beispiel #1
0
 def convert(value):
     if value is None:
         raise TypeError("None is not allowed.")
     else:
         return TypeConverters.toBoolean(value)
Beispiel #2
0
 def convert(value):
     if value is None:
         return None
     else:
         return TypeConverters.toBoolean(value)