diff --git a/core/superduperreload/patching.py b/core/superduperreload/patching.py index c72e98c..e76bec8 100644 --- a/core/superduperreload/patching.py +++ b/core/superduperreload/patching.py @@ -221,7 +221,7 @@ def _patch_function(self, old: FunctionType, new: FunctionType) -> None: def _patch_method(self, old: MethodType, new: MethodType) -> None: if old is new: return - self._patch_function(old.__func__, new.__func__) + self._patch_function(old.__func__, new.__func__) # type: ignore self._try_patch_readonly_attr(_CPythonStructType.METHOD, old, new, "__self__") @classmethod