Пример #1
0
 def convert(value):
     if value is None:
         raise TypeError("None is not allowed.")
     else:
         return TypeConverters.toBoolean(value)
Пример #2
0
 def convert(value):
     if value is None:
         return None
     else:
         return TypeConverters.toBoolean(value)