summaryrefslogtreecommitdiff
path: root/git/cmd.py
diff options
context:
space:
mode:
authorYobmod <yobmod@gmail.com>2021-07-31 22:26:20 +0100
committerYobmod <yobmod@gmail.com>2021-07-31 22:26:20 +0100
commit39d37d550963a6a64e66ba3d6b9f4b077270a3ad (patch)
tree0f5f7d75ffc4ac1d6abc689d6739d7077adf7d27 /git/cmd.py
parent2a350b57ce79a0e1b71623d1146c52918232e074 (diff)
downloadgitpython-39d37d550963a6a64e66ba3d6b9f4b077270a3ad.tar.gz
replace some TBDs wiht runtime types
Diffstat (limited to 'git/cmd.py')
-rw-r--r--git/cmd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/git/cmd.py b/git/cmd.py
index f8212745..cbfde74c 100644
--- a/git/cmd.py
+++ b/git/cmd.py
@@ -68,7 +68,7 @@ __all__ = ('Git',)
# Documentation
## @{
-def handle_process_output(process: subprocess.Popen,
+def handle_process_output(process: Union[subprocess.Popen, 'Git.AutoInterrupt'],
stdout_handler: Union[None,
Callable[[AnyStr], None],
Callable[[List[AnyStr]], None],
@@ -77,7 +77,7 @@ def handle_process_output(process: subprocess.Popen,
Callable[[AnyStr], None],
Callable[[List[AnyStr]], None]],
finalizer: Union[None,
- Callable[[subprocess.Popen], None]] = None,
+ Callable[[Union[subprocess.Popen, 'Git.AutoInterrupt']], None]] = None,
decode_streams: bool = True) -> None:
"""Registers for notifications to learn that process output is ready to read, and dispatches lines to
the respective line handlers.