From 6e051d8c34cb62e4b5e6fb21d0449d55341455fa Mon Sep 17 00:00:00 2001 From: Ananya Date: Wed, 4 Feb 2026 16:23:19 +0530 Subject: [PATCH 1/2] docs: clarify usage of option with multiple values --- .../options_with_multiple_values/tutorial001_py39.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs_src/multiple_values/options_with_multiple_values/tutorial001_py39.py b/docs_src/multiple_values/options_with_multiple_values/tutorial001_py39.py index f21e794102..37aa212f5c 100644 --- a/docs_src/multiple_values/options_with_multiple_values/tutorial001_py39.py +++ b/docs_src/multiple_values/options_with_multiple_values/tutorial001_py39.py @@ -1,3 +1,15 @@ +""" +This example shows how to define a Typer option that accepts multiple values +using a tuple type hint. + +The --user option expects exactly three values, in this order: +1. username (str) +2. coins (int) +3. is_wizard (bool) + +Example usage: +python tutorial001_py39.py --user Harry 100 true +""" import typer app = typer.Typer() From 0063646cb84cdc5b0412260557e16bc8b1517761 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci-lite[bot]" <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Date: Wed, 4 Feb 2026 11:07:40 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=8E=A8=20Auto=20format?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../options_with_multiple_values/tutorial001_py39.py | 1 + 1 file changed, 1 insertion(+) diff --git a/docs_src/multiple_values/options_with_multiple_values/tutorial001_py39.py b/docs_src/multiple_values/options_with_multiple_values/tutorial001_py39.py index 37aa212f5c..d007c76375 100644 --- a/docs_src/multiple_values/options_with_multiple_values/tutorial001_py39.py +++ b/docs_src/multiple_values/options_with_multiple_values/tutorial001_py39.py @@ -10,6 +10,7 @@ Example usage: python tutorial001_py39.py --user Harry 100 true """ + import typer app = typer.Typer()