✏️ Fix a few typos in the source and documentation (#1028)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Kevin Kirsche · committed by GitHub · parent 95ba85f · Browse files · 3 files·+7 added−7 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Trailers
- Co-authored-by: Kevin Kirsche <kevin.kirsche@one.verizon.com>
- Co-authored-by: svlandeg <svlandeg@github.com>
- Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
Diff stats
3 files+7 added−7 removed
- tests:+5 added−5 removed
- other:+2 added−2 removed
Provenance
- Commit
3b9ce47- Tree
73a6e9c- Author
Kevin Kirsche <swaps.jury0u@icloud.com>- Committer
GitHub <noreply@github.com>- Parent
95ba85f
3 files changed+7 added−7 removed
modified:docs/tutorial/options/required.md+1 added-1 removed
17 unmodified lines1819202122222324252645 unmodified lines17 unmodified linesThe same way as with `typer.Argument()`, the old style of using the function parameter default value is also supported, in that case you would just not pass anything to the `default` parameter.
{* docs_src/options/required/tutorial001.py hl[4] *}
Or you can explictily pass `...` to `typer.Option(default=...)`:Or you can explicitly pass `...` to `typer.Option(default=...)`:
{* docs_src/options/required/tutorial002.py hl[4] *}
/// info45 unmodified linesmodified:docs/help-typer.md+1 added-1 removed
145 unmodified lines146 ### Don't worry about style147 148 * Don't worry too much about things like commit message styles, I will squash and merge customizing the commit manually.149 150-* Also don't worry about style rules, there are already automatized tools checking that.150+* Also don't worry about style rules, there are already automated tools checking that.151 152 And if there's any other style or consistency need, I'll ask directly for that, or I'll add commits on top with the needed changes.153 154 ### Check the code95 unmodified linesmodified:tests/test_tutorial/test_subcommands/test_tutorial003.py+5 added-5 removed
47 unmodified lines48 def test_items_create(app):49 result = runner.invoke(app, ["items", "create", "Wand"])50 assert result.exit_code == 051 assert "Creating item: Wand" in result.output52- # For coverage, becauses the monkeypatch above sometimes confuses coverage52+ # For coverage, because the monkeypatch above sometimes confuses coverage53 result = runner.invoke(items.app, ["create", "Wand"])54 assert result.exit_code == 055 assert "Creating item: Wand" in result.output56 1 unmodified line58 def test_items_sell(app):59 result = runner.invoke(app, ["items", "sell", "Vase"])60 assert result.exit_code == 061 assert "Selling item: Vase" in result.output62- # For coverage, becauses the monkeypatch above sometimes confuses coverage62+ # For coverage, because the monkeypatch above sometimes confuses coverage63 result = runner.invoke(items.app, ["sell", "Vase"])64 assert result.exit_code == 065 assert "Selling item: Vase" in result.output66 1 unmodified line68 def test_items_delete(app):69 result = runner.invoke(app, ["items", "delete", "Vase"])70 assert result.exit_code == 071 assert "Deleting item: Vase" in result.output72- # For coverage, becauses the monkeypatch above sometimes confuses coverage72+ # For coverage, because the monkeypatch above sometimes confuses coverage73 result = runner.invoke(items.app, ["delete", "Vase"])74 assert result.exit_code == 075 assert "Deleting item: Vase" in result.output76 11 unmodified lines88 def test_users_create(app):89 result = runner.invoke(app, ["users", "create", "Camila"])90 assert result.exit_code == 091 assert "Creating user: Camila" in result.output92- # For coverage, becauses the monkeypatch above sometimes confuses coverage92+ # For coverage, because the monkeypatch above sometimes confuses coverage93 result = runner.invoke(users.app, ["create", "Camila"])94 assert result.exit_code == 095 assert "Creating user: Camila" in result.output96 1 unmodified line98 def test_users_delete(app):99 result = runner.invoke(app, ["users", "delete", "Camila"])100 assert result.exit_code == 0101 assert "Deleting user: Camila" in result.output102- # For coverage, becauses the monkeypatch above sometimes confuses coverage102+ # For coverage, because the monkeypatch above sometimes confuses coverage103 result = runner.invoke(users.app, ["delete", "Camila"])104 assert result.exit_code == 0105 assert "Deleting user: Camila" in result.output106 66 unmodified lines