Skip to content

Commit

Permalink
Add warning when callback is passed but name is None
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick91 committed Nov 27, 2024
1 parent 38f064f commit 53f65ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typer/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ def get_group_from_info(

warnings.warn(
"The 'callback' parameter is not supported by Typer when using `add_typer` without a name",
stacklevel=2,
stacklevel=5,
)
solved_info = solve_typer_info_defaults(group_info)
(
Expand Down

0 comments on commit 53f65ba

Please sign in to comment.