diff --git a/src/groundlight/cli.py b/src/groundlight/cli.py index c15c4035..cd138bb1 100644 --- a/src/groundlight/cli.py +++ b/src/groundlight/cli.py @@ -26,13 +26,13 @@ class FakeClass: pass fake_instance = FakeClass() - fake_method = method.__get__(fake_instance, FakeClass) + fake_method = method.get(fake_instance, FakeClass) @wraps(fake_method) def wrapper(*args, **kwargs): gl = Groundlight() gl_method = vars(Groundlight)[fake_method.__name__] - gl_bound_method = gl_method.__get__(gl, Groundlight) + gl_bound_method = gl_method.get(gl, Groundlight) print(gl_bound_method(*args, **kwargs)) # this is where we output to the console # not recommended practice to directly change annotations, but gets around Typer not supporting Union types