diff --git a/src/writer/core.py b/src/writer/core.py index 7f3afd55c..2977ec335 100644 --- a/src/writer/core.py +++ b/src/writer/core.py @@ -18,7 +18,6 @@ import types import urllib.request from abc import ABCMeta -from functools import partial, wraps from multiprocessing.process import BaseProcess from types import ModuleType from typing import ( @@ -92,7 +91,7 @@ def import_failure(rvalue: Any = None): :param rvalue: the value to return """ def decorator(func): - @wraps(func) + @functools.wraps(func) def wrapper(*args, **kwargs): try: return func(*args, **kwargs) @@ -704,7 +703,7 @@ def subscribe_mutation(self, path: Union[str, List[str]], handler: Callable[['St for p in path_list: state_proxy = self._state_proxy path_parts = p.split(".") - final_handler = partial(handler, self) + final_handler = functools.partial(handler, self) for i, path_part in enumerate(path_parts): if i == len(path_parts) - 1: local_mutation = MutationSubscription(path_parts[-1], final_handler)