summaryrefslogtreecommitdiff
path: root/git/cmd.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/cmd.py')
-rw-r--r--git/cmd.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/git/cmd.py b/git/cmd.py
index 78fa3c9d..18a2bec1 100644
--- a/git/cmd.py
+++ b/git/cmd.py
@@ -164,7 +164,8 @@ CREATE_NO_WINDOW = 0x08000000
## CREATE_NEW_PROCESS_GROUP is needed to allow killing it afterwards,
# see https://docs.python.org/3/library/subprocess.html#subprocess.Popen.send_signal
-PROC_CREATIONFLAGS = (CREATE_NO_WINDOW | subprocess.CREATE_NEW_PROCESS_GROUP if is_win else 0)
+PROC_CREATIONFLAGS = (CREATE_NO_WINDOW | subprocess.CREATE_NEW_PROCESS_GROUP # type: ignore[attr-defined]
+ if is_win else 0) # mypy error if not windows
class Git(LazyMixin):