Skip to content

Commit

Permalink
Improves complete_path_callback func signature
Browse files Browse the repository at this point in the history
  • Loading branch information
dbosk committed Apr 27, 2023
1 parent fd042bf commit bf07e38
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/typerconf/init.nw
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,9 @@ def test_complete_path():
Now, the callback must not have any additional arguments, like we want that
[[conf]] argument for testing.
<<helper functions>>=
def complete_path_callback(ctx, param, initial_path: str):
def complete_path_callback(ctx: typer.Context,
args: typing.List[str],
initial_path: str):
return complete_path(initial_path)
@

Expand Down

0 comments on commit bf07e38

Please sign in to comment.