Skip to content

Commit 876bcab

Browse files
committed
remove python 3.7 tabs for reusable completer example
1 parent 365e374 commit 876bcab

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

docs/tutorial/options-autocompletion.md

+1-21
Original file line numberDiff line numberDiff line change
@@ -270,27 +270,7 @@ You may want to reuse completer functions across CLI applications or within the
270270

271271
We can declare a parameter of type <a href="https://click.palletsprojects.com/en/stable/api/#click.Parameter" class="external-link" target="_blank">click.Parameter</a> along with the `click.Context` in our completer function to determine this. For example, lets revisit our above context example where we filter out duplicates but add a second greeter argument that reuses the same completer function:
272272

273-
//// tab | Python 3.7+
274-
275-
```Python hl_lines="15-16"
276-
{!> ../docs_src/options_autocompletion/tutorial010_an.py!}
277-
```
278-
279-
////
280-
281-
//// tab | Python 3.7+ non-Annotated
282-
283-
/// tip
284-
285-
Prefer to use the `Annotated` version if possible.
286-
287-
///
288-
289-
```Python hl_lines="14-15"
290-
{!> ../docs_src/options_autocompletion/tutorial010.py!}
291-
```
292-
293-
////
273+
{* docs_src/options_autocompletion/tutorial010_an.py hl[15:16] *}
294274

295275
/// tip
296276

0 commit comments

Comments
 (0)