Skip to content

Commit 749cade

Browse files
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
1 parent cfbeb3d commit 749cade

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/tutorial/options-autocompletion.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ It doesn't matter how you name them, in which order, or which ones of the 3 opti
567567

568568
## Comparison to Click functionality
569569

570-
Note that Click 7 had a similar [`autocompletion` function](https://click.palletsprojects.com/en/7.x/bashcomplete/), but it worked slightly differently.
570+
Note that Click 7 had a similar [`autocompletion` function](https://click.palletsprojects.com/en/7.x/bashcomplete/), but it worked slightly differently.
571571

572572
It required the callback function to take exactly the 3 keyword arguments `ctx`, `args` and `incomplete` in that exact order, instead of matching them dynamically based on types, as Typer does.
573573

typer/core.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ def _typer_param_setup_autocompletion_compat(
6464
) -> None:
6565
if autocompletion is None and self._custom_shell_complete is not None:
6666
import warnings
67+
6768
warnings.warn(
6869
"In Typer, only the parameter 'autocompletion' is supported. "
6970
"The usage of 'shell_complete' will be deprecated in upcoming versions. ",

0 commit comments

Comments
 (0)