Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 70ea7ec

Browse filesBrowse files
committed
Fix annotations for Python 3.8 and lower
1 parent a5414bf commit 70ea7ec
Copy full SHA for 70ea7ec

File tree

1 file changed

+4
-4
lines changed
Filter options

1 file changed

+4
-4
lines changed

‎test/test_index.py

Copy file name to clipboardExpand all lines: test/test_index.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import re
1414
import shutil
1515
from stat import S_ISLNK, ST_MODE
16-
from subprocess import CompletedProcess, run
16+
import subprocess
1717
import tempfile
1818

1919
import 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:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.