From 060fc2fd30dbcf8b59b8fa7d37fd9a9311af0572 Mon Sep 17 00:00:00 2001 From: Claudiu Popa Date: Sun, 17 Nov 2019 09:30:54 +0100 Subject: [PATCH] Add more supported parameters to ``subprocess.check_output`` Close #722 --- ChangeLog | 4 ++++ astroid/brain/brain_subprocess.py | 12 ++++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1f875c1fc6..c0c3725cfd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -12,6 +12,10 @@ Release Date: TBA * Allow inferring positional only arguments. +* Add more supported parameters to ``subprocess.check_output`` + + Close #722 + * Infer args unpacking of ``self`` Certain stdlib modules use ``*args`` to encapsulate diff --git a/astroid/brain/brain_subprocess.py b/astroid/brain/brain_subprocess.py index 78e0ba42bb..72f4b461aa 100644 --- a/astroid/brain/brain_subprocess.py +++ b/astroid/brain/brain_subprocess.py @@ -70,7 +70,11 @@ def __exit__(self, *args): pass universal_newlines=False, timeout=None, env=None, - text=None + text=None, + restore_signals=True, + preexec_fn=None, + pass_fds=(), + start_new_session=False ): """.strip() else: @@ -85,7 +89,11 @@ def __exit__(self, *args): pass errors=None, universal_newlines=False, timeout=None, - env=None + env=None, + restore_signals=True, + preexec_fn=None, + pass_fds=(), + start_new_session=False ): """.strip()