def _max_args(self, f):
        if f.func_defaults is None:
            return f.func_code.co_argcount

        return f.func_code.co_argcount + len(f.func_defaults)
Returns maximum number of arguments accepted by given function.
dataset/ETHPy150Open flowroute/txjason/txjason/service.py/JSONRPCService._max_args