From 2e2fe186d09272c3cb6c96467fff362deb90994f Mon Sep 17 00:00:00 2001 From: Yobmod Date: Thu, 8 Jul 2021 11:30:16 +0100 Subject: Increase mypy strictness (no_implicit_optional & warn_redundant_casts) and fix errors --- git/cmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git/cmd.py') diff --git a/git/cmd.py b/git/cmd.py index 7df85581..dd887a18 100644 --- a/git/cmd.py +++ b/git/cmd.py @@ -831,7 +831,7 @@ class Git(LazyMixin): except cmd_not_found_exception as err: raise GitCommandNotFound(redacted_command, err) from err else: - proc = cast(Popen, proc) + # replace with a typeguard for Popen[bytes]? proc.stdout = cast(BinaryIO, proc.stdout) proc.stderr = cast(BinaryIO, proc.stderr) -- cgit v1.2.1