Skip to content

Commit 43a8137

Browse files
committed
make ID uppercase var in the docs
1 parent 6a4aef8 commit 43a8137

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

docs_src/parameter_types/number/tutorial001_an_py310.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77

88
@app.command()
99
def main(
10-
id: Annotated[int, typer.Argument(min=0, max=1000)],
10+
ID: Annotated[int, typer.Argument(min=0, max=1000)],
1111
age: Annotated[int, typer.Option(min=18)] = 20,
1212
score: Annotated[float, typer.Option(max=100)] = 0,
1313
):
14-
print(f"ID is {id}")
14+
print(f"ID is {ID}")
1515
print(f"--age is {age}")
1616
print(f"--score is {score}")
1717

docs_src/parameter_types/number/tutorial001_py310.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55

66
@app.command()
77
def main(
8-
id: int = typer.Argument(..., min=0, max=1000),
8+
ID: int = typer.Argument(..., min=0, max=1000),
99
age: int = typer.Option(20, min=18),
1010
score: float = typer.Option(0, max=100),
1111
):
12-
print(f"ID is {id}")
12+
print(f"ID is {ID}")
1313
print(f"--age is {age}")
1414
print(f"--score is {score}")
1515

docs_src/parameter_types/number/tutorial002_an_py310.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77

88
@app.command()
99
def main(
10-
id: Annotated[int, typer.Argument(min=0, max=1000)],
10+
ID: Annotated[int, typer.Argument(min=0, max=1000)],
1111
rank: Annotated[int, typer.Option(max=10, clamp=True)] = 0,
1212
score: Annotated[float, typer.Option(min=0, max=100, clamp=True)] = 0,
1313
):
14-
print(f"ID is {id}")
14+
print(f"ID is {ID}")
1515
print(f"--rank is {rank}")
1616
print(f"--score is {score}")
1717

docs_src/parameter_types/number/tutorial002_py310.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55

66
@app.command()
77
def main(
8-
id: int = typer.Argument(..., min=0, max=1000),
8+
ID: int = typer.Argument(..., min=0, max=1000),
99
rank: int = typer.Option(0, max=10, clamp=True),
1010
score: float = typer.Option(0, min=0, max=100, clamp=True),
1111
):
12-
print(f"ID is {id}")
12+
print(f"ID is {ID}")
1313
print(f"--rank is {rank}")
1414
print(f"--score is {score}")
1515

0 commit comments

Comments
 (0)