Example #1
0
 def _actual_preprocessor(func, argname, argvalue):
     if getattrs(argvalue, ('dtype', 'kind'), object()) not in kinds:
         raise TypeError(error_message(func, argname, argvalue))
     return argvalue
Example #2
0
 def _actual_preprocessor(func, argname, argvalue):
     if getattrs(argvalue, ('dtype', 'kind'), object()) not in kinds:
         raise TypeError(error_message(func, argname, argvalue))
     return argvalue