Skip to content

Commit

Permalink
fix typecheck false positive
Browse files Browse the repository at this point in the history
smacke committed Apr 1, 2024
1 parent 3dd9e1e commit 48c9017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/superduperreload/patching.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 48c9017

Please sign in to comment.