We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6db573a commit bb15fcdCopy full SHA for bb15fcd
src/spatch/backend_system.py
@@ -920,7 +920,7 @@ def new_func(*args, **kwargs):
920
new_func.__kwdefaults__ = self.__kwdefaults__ = getattr(func, "__kwdefaults__", None)
921
new_func.__annotations__ = self.__annotations__ = getattr(func, "__annotations__", {})
922
new_func.__type_params__ = self.__type_params__ = getattr(func, "__type_params__", ())
923
- new_func.__dict__.update(func.__dict__)
+ new_func.__dict__.update(getattr(func, "__dict__", {}))
924
# self.__dict__.update(func.__dict__) # Don't clobber self.__dict__; too risky!
925
self.__wrapped__ = func
926
new_func.__wrapped__ = self
0 commit comments