summaryrefslogtreecommitdiff
path: root/src/click/testing.py
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2022-04-28 11:05:06 -0700
committerDavid Lord <davidism@gmail.com>2022-04-28 11:05:06 -0700
commit501dec6e4324f289eee598a77865a6de95b62727 (patch)
treec62c4007aa83f9623f9cdc99be2097a5aef3cd4a /src/click/testing.py
parent0aec1168ac591e159baf6f61026d6ae322c53aaf (diff)
downloadclick-parser-rewrite.tar.gz
Diffstat (limited to 'src/click/testing.py')
-rw-r--r--src/click/testing.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/click/testing.py b/src/click/testing.py
index e395c2e..a68f604 100644
--- a/src/click/testing.py
+++ b/src/click/testing.py
@@ -14,7 +14,7 @@ from . import utils
from ._compat import _find_binary_reader
if t.TYPE_CHECKING:
- from .core import BaseCommand
+ from .core import Command
class EchoingStdin:
@@ -187,7 +187,7 @@ class CliRunner:
self.echo_stdin = echo_stdin
self.mix_stderr = mix_stderr
- def get_default_prog_name(self, cli: "BaseCommand") -> str:
+ def get_default_prog_name(self, cli: "Command") -> str:
"""Given a command object it will return the default program name
for it. The default is the `name` attribute or ``"root"`` if not
set.
@@ -348,7 +348,7 @@ class CliRunner:
def invoke(
self,
- cli: "BaseCommand",
+ cli: "Command",
args: t.Optional[t.Union[str, t.Sequence[str]]] = None,
input: t.Optional[t.Union[str, bytes, t.IO]] = None,
env: t.Optional[t.Mapping[str, t.Optional[str]]] = None,