Skip to content

Commit

Permalink
Tell linter its wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler-romero committed Jun 19, 2024
1 parent 633f880 commit 28b246b
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) # pylint: disable=C2801

@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) # pylint: disable=C2801
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 28b246b

Please sign in to comment.