import functoolsdef myfunc(arg1: int, arg2: str): # 処理arg2 = 'abc'functools.partial(myfunc, arg2=arg2) # myfunc(arg1, arg2=arg2)という関数として扱われる