Esempio n. 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
Esempio n. 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
Esempio n. 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
Esempio n. 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