Skip to content

Commit

Permalink
subprocess: Backport `universal_newlines typings
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed May 6, 2024
1 parent 65ba9e0 commit 3f62d36
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/libvcs/_internal/subprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ class SubprocessCommand(SkipDefaultFieldsReprMixin):
def Popen(
self,
args: Optional[_CMD] = ...,
universal_newlines: bool = ...,
universal_newlines: Optional[bool] = ...,
*,
text: Optional[bool] = ...,
encoding: str,
Expand All @@ -230,7 +230,7 @@ def Popen(
def Popen(
self,
args: Optional[_CMD] = ...,
universal_newlines: bool = ...,
universal_newlines: Optional[bool] = ...,
*,
text: Optional[bool] = ...,
encoding: Optional[str] = ...,
Expand All @@ -253,7 +253,7 @@ def Popen(
def Popen(
self,
args: Optional[_CMD] = ...,
universal_newlines: bool = ...,
universal_newlines: Optional[bool] = ...,
*,
text: Literal[True],
encoding: Optional[str] = ...,
Expand All @@ -264,7 +264,7 @@ def Popen(
def Popen(
self,
args: Optional[_CMD] = ...,
universal_newlines: Literal[False] = ...,
universal_newlines: Literal[False, None] = ...,
*,
text: Literal[None, False] = ...,
encoding: None = ...,
Expand Down Expand Up @@ -325,7 +325,7 @@ def check_call(self, **kwargs: Any) -> int:
@overload
def check_output(
self,
universal_newlines: bool = ...,
universal_newlines: Optional[bool] = ...,
*,
input: Optional[Union[str, bytes]] = ...,
encoding: Optional[str] = ...,
Expand All @@ -349,7 +349,7 @@ def check_output(
@overload
def check_output(
self,
universal_newlines: bool = ...,
universal_newlines: Optional[bool] = ...,
*,
input: Optional[Union[str, bytes]] = ...,
encoding: Optional[str] = ...,
Expand All @@ -373,7 +373,7 @@ def check_output(
@overload
def check_output(
self,
universal_newlines: Literal[False],
universal_newlines: Literal[False, None],
*,
input: Optional[Union[str, bytes]] = ...,
encoding: None = ...,
Expand Down Expand Up @@ -432,7 +432,7 @@ def check_output(
@overload
def run(
self,
universal_newlines: bool = ...,
universal_newlines: Optional[bool] = ...,
*,
capture_output: bool = ...,
check: bool = ...,
Expand All @@ -445,7 +445,7 @@ def run(
@overload
def run(
self,
universal_newlines: bool = ...,
universal_newlines: Optional[bool] = ...,
*,
capture_output: bool = ...,
check: bool = ...,
Expand All @@ -458,7 +458,7 @@ def run(
@overload
def run(
self,
universal_newlines: bool = ...,
universal_newlines: Optional[bool] = ...,
*,
capture_output: bool = ...,
check: bool = ...,
Expand All @@ -485,7 +485,7 @@ def run(
@overload
def run(
self,
universal_newlines: Literal[False] = ...,
universal_newlines: Literal[False, None] = ...,
*,
capture_output: bool = ...,
check: bool = ...,
Expand Down

0 comments on commit 3f62d36

Please sign in to comment.