File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1313import re
1414import shutil
1515from stat import S_ISLNK, ST_MODE
16- from subprocess import CompletedProcess, run
16+ import subprocess
1717import tempfile
1818
1919import ddt
@@ -93,14 +93,14 @@ class Wsl:
9393 class WslNoDistro:
9494 """Running bash.exe tries to run bash on a WSL distribution, but none exists."""
9595
96- process: CompletedProcess[bytes]
96+ process: "subprocess. CompletedProcess[bytes]"
9797 message: str
9898
9999 @dataclass
100100 class CheckError:
101101 """Running bash.exe fails in an unexpected error or gives unexpected output."""
102102
103- process: CompletedProcess[bytes]
103+ process: "subprocess. CompletedProcess[bytes]"
104104 message: str
105105
106106 @dataclass
@@ -133,7 +133,7 @@ def check(cls):
133133 # information on ways to check for WSL, see https://superuser.com/a/1749811.
134134 script = 'test -e /proc/sys/fs/binfmt_misc/WSLInterop; echo "$?"'
135135 command = ["bash.exe", "-c", script]
136- process = run(command, capture_output=True)
136+ process = subprocess. run(command, capture_output=True)
137137 except FileNotFoundError:
138138 return cls.Absent()
139139 except OSError as error:
You can’t perform that action at this time.
0 commit comments