default instrument implementation

This commit is contained in:
AF 2023-05-05 16:16:03 +00:00
parent d834c24e14
commit 3c13630d8e

View File

@ -21,7 +21,7 @@ class Instrumentation:
self.methodname = methodname
def instrument(self, method, *args, **kwargs):
raise NotImplementedError
return method(*args, **kwargs)
def __enter__(self: IType) -> IType:
if hasattr(self, '_method') or hasattr(self, '_wrap'):