Beispiel #1
0
 def return_type(self):
     ret = [str]
     # CF units conversion packages are optional.
     uc = get_units_class(should_raise=False)
     if uc is not None:
         ret.append(uc)
     return ret
Beispiel #2
0
 def return_type(self):
     ret = [six.string_types]
     # CF units conversion packages are optional.
     uc = get_units_class(should_raise=False)
     if uc is not None:
         ret.append(uc)
     return ret
Beispiel #3
0
 def input_types(self):
     # CF units conversion packages are optional.
     uc = get_units_class(should_raise=False)
     if uc is None:
         ret = []
     else:
         ret = [uc]
     return ret
Beispiel #4
0
 def input_types(self):
     # CF units conversion packages are optional.
     uc = get_units_class(should_raise=False)
     if uc is None:
         ret = []
     else:
         ret = [uc]
     return ret