def unary_predicate(func):
 func.argtypes = [GEOM_PTR]
 func.restype = c_char
 func.errcheck = check_predicate
 return func

def unary_predicate ( func ) : func . argtypes = [ GEOM_PTR ] func . restype = c_char func . errcheck = check_predicate return func
for geos unary predicate functions .