From 5f950ac54e46e9ac33aee147946544e9f762700f Mon Sep 17 00:00:00 2001 From: Brian Pugh Date: Wed, 30 Nov 2022 09:31:43 -0800 Subject: [PATCH] Fix decorated method instantiation during init. --- belay/device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/belay/device.py b/belay/device.py index 94df92f..06635c0 100644 --- a/belay/device.py +++ b/belay/device.py @@ -248,7 +248,7 @@ def __init__( metadata = getattr(method, "__belay__", None) if not metadata: continue - executer = getattr(Executer, metadata.executer.__registry__.name) + executer = getattr(self, metadata.executer.__registry__.name) setattr( self, name,