Skip to content

Commit d45602e

Browse files
committed
Add warning when callback is passed but name is None
1 parent 853c073 commit d45602e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typer/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ def get_group_from_info(
498498

499499
warnings.warn(
500500
"The 'callback' parameter is not supported by Typer when using `add_typer` without a name",
501-
stacklevel=2,
501+
stacklevel=5,
502502
)
503503
solved_info = solve_typer_info_defaults(group_info)
504504
(

0 commit comments

Comments
 (0)