Skip to content

Commit

Permalink
Update fix linter issues with __get__
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler-romero authored Jun 19, 2024
1 parent 633f880 commit f6c2383
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/groundlight/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f6c2383

Please sign in to comment.