func_attrs = [
"__code__",
"__defaults__",
"__doc__",
"__closure__",
"__globals__",
"__dict__",
]
These are the attributes autoreload tries patching when updating a changed function. When using deduperreload (the default) it will also patch kwdefaults. imo kwdefaults should be added to func_attrs so it is patched when not using deduperreload, along with annotations and type_params which neither the old code or the new deduperreload is updating currently.
These are the attributes autoreload tries patching when updating a changed function. When using deduperreload (the default) it will also patch kwdefaults. imo kwdefaults should be added to func_attrs so it is patched when not using deduperreload, along with annotations and type_params which neither the old code or the new deduperreload is updating currently.