def with_signature(returns, takes):

    sig = signature(returns, takes)
    return java_method(sig)
Alternative version of @java_method that takes JavaClass
dataset/ETHPy150Open kivy/pyjnius/jnius/signatures.py/with_signature