Loading tools/base_browser/tb-dev +9 −3 Original line number Diff line number Diff line Loading @@ -15,9 +15,14 @@ import tempfile import termios import urllib.request from collections.abc import Callable, Iterable, Iterator from types import ModuleType from typing import Any, NotRequired, TypedDict, TypeVar argcomplete: None | ModuleType = None try: import argcomplete except ImportError: pass GIT_PATH = "/usr/bin/git" UPSTREAM_URLS = { Loading Loading @@ -943,9 +948,10 @@ for name, command_config in all_commands.items(): completer = keywords["completer"] del keywords["completer"] sub_arg = sub.add_argument(arg, **keywords) if completer is not None: if completer is not None and argcomplete is not None: sub_arg.completer = completer # type: ignore if argcomplete is not None: argcomplete.autocomplete(parser) try: Loading Loading
tools/base_browser/tb-dev +9 −3 Original line number Diff line number Diff line Loading @@ -15,9 +15,14 @@ import tempfile import termios import urllib.request from collections.abc import Callable, Iterable, Iterator from types import ModuleType from typing import Any, NotRequired, TypedDict, TypeVar argcomplete: None | ModuleType = None try: import argcomplete except ImportError: pass GIT_PATH = "/usr/bin/git" UPSTREAM_URLS = { Loading Loading @@ -943,9 +948,10 @@ for name, command_config in all_commands.items(): completer = keywords["completer"] del keywords["completer"] sub_arg = sub.add_argument(arg, **keywords) if completer is not None: if completer is not None and argcomplete is not None: sub_arg.completer = completer # type: ignore if argcomplete is not None: argcomplete.autocomplete(parser) try: Loading