From 135ab54e1e33c5fbf14ad34afb688c42ec2d4685 Mon Sep 17 00:00:00 2001 From: Pei Zhang Date: Sat, 29 Nov 2025 16:15:12 -0800 Subject: [PATCH] Fix method name retrieval in patch_method Seems to be a typo --- vescale/utils/monkey_patch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vescale/utils/monkey_patch.py b/vescale/utils/monkey_patch.py index b6cc622..71d8513 100644 --- a/vescale/utils/monkey_patch.py +++ b/vescale/utils/monkey_patch.py @@ -20,7 +20,7 @@ def patch_method(target: Any, method_name: str, raise_error=False): def helper(func): - fn = getattr(target, "method_name", None) + fn = getattr(target, method_name, None) if fn is None: setattr(target, method_name, func)