Skip to content

Commit

Permalink
fix: shell_complete and autocompletion cannot share the same fns
Browse files Browse the repository at this point in the history
Trying to write complete_path so it works for either is futile, because typer
checks that the functions has the mandated signature.
  • Loading branch information
joanise committed Nov 26, 2024
1 parent 6d813bd commit a196ba9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion aligner/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
)


def complete_path(ctx=None, param=None, incomplete=None):
def complete_path(ctx, param, incomplete):
return []


Expand Down
1 change: 0 additions & 1 deletion aligner/tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ def test_align_something(self):

class MiscTests(TestCase):
def test_shell_complete(self):
self.assertEqual(complete_path(), [])
self.assertEqual(complete_path(None, None, None), [])

def test_segment(self):
Expand Down

0 comments on commit a196ba9

Please sign in to comment.