This commit is contained in:
Ari Archer 2021-11-29 16:37:15 +02:00
parent 410621da7d
commit 39f53ce99e
Signed by untrusted user who does not match committer: ari
GPG key ID: A50D5B4B599AF8A2

View file

@ -39,7 +39,7 @@ class LogWriter:
pass
def copy_func(f):
def copy_func(f: Callable) -> Callable:
"""Based on https://stackoverflow.com/a/6528148/190597 (Glenn Maynard)"""
g = types.FunctionType(
f.__code__,