Skip to content
Myr

✏ Fix typo in docs for CLI Option autocompletion (#288)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by graue70 · committed by GitHub · parent dc609f0 · Browse files · 1 file+1 added−1 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: Sebastián Ramírez <tiangolo@gmail.com>

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/tutorial/options/autocompletion.md+1 added-1 removed
220 unmodified lines
221If there's no `--name` in the command line, it will be `None`, so we use `or []` to make sure we have a `list` (even if empty) to check its contents later.222223Then, when we have a completion candidate, we check if each `name` was already provided with `--name` by checking if it's in that list of `names` with `name not in names`.224225And then we `yield` each item that has not being used yet.225And then we `yield` each item that has not been used yet.226227Check it:228229<div class="termy">
134 unmodified lines