Ejemplo 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
Ejemplo 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
Ejemplo 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
Ejemplo 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