Skip to content

Commit

Permalink
Merge branch 'tiangolo:master' into feature/enable-rich
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobKochems authored Feb 29, 2024
2 parents c408a39 + 39d71fa commit fc18ef2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions docs/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@
* 🐛 Fix internal type annotations and bump mypy version. PR [#638](https://github.com/tiangolo/typer/pull/638) by [@paulo-raca](https://github.com/paulo-raca).
* 📝 Remove obsolete references to `--install-completion` for `typer.run()` scripts. PR [#595](https://github.com/tiangolo/typer/pull/595) by [@tiangolo](https://github.com/tiangolo).

### Docs

* ✏ Fix typo in `docs/tutorial/exceptions.md`. PR [#702](https://github.com/tiangolo/typer/pull/702) by [@menzenski](https://github.com/menzenski).
* ✏ Fix typo in `docs/tutorial/options/name.md`. PR [#725](https://github.com/tiangolo/typer/pull/725) by [@bwagner](https://github.com/bwagner).
* ✏ Fix typo in `docs/tutorial/arguments/optional.md`. PR [#602](https://github.com/tiangolo/typer/pull/602) by [@tadasgedgaudas](https://github.com/tadasgedgaudas).

### Internal

* 👷 Update build docs CI cache paths. PR [#707](https://github.com/tiangolo/typer/pull/707) by [@tiangolo](https://github.com/tiangolo).
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/arguments/optional.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ It's still not very useful, but it works correctly.
And being able to declare a **required** *CLI argument* using

```Python
name: Annoated[str, typer.Argument()]
name: Annotated[str, typer.Argument()]
```

...that works exactly the same as
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/exceptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ name = 'morty'

In this case, `name` is a local variable, it comes from a parameter passed to the function.

But if it was something like a password, would would have liked to hide it.
But if it was something like a password, you would have liked to hide it.

In that case, you can create the `typer.Typer()` application explicitly and set the parameter `pretty_exceptions_show_locals=False`:

Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/options/name.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ tar: You must specify one of the blah, blah, error, error

In **Typer** you can also define *CLI option* short names the same way you can customize the long names.

YOu can pass *positional* arguments to `typer.Option()` to define the *CLI option* name(s).
You can pass *positional* arguments to `typer.Option()` to define the *CLI option* name(s).

!!! tip
Remember the *positional* function arguments are those that don't have a keyword.
Expand Down

0 comments on commit fc18ef2

Please sign in to comment.