From f6c2383a4fb4587536c66febb4fdfca57cd72adf Mon Sep 17 00:00:00 2001 From: Tyler Romero Date: Tue, 18 Jun 2024 18:07:00 -0700 Subject: [PATCH] Update fix linter issues with __get__ --- src/groundlight/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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