Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

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

Sign up
Appearance settings

Commit70ea7ec

Browse files
committed
Fix annotations for Python 3.8 and lower
1 parenta5414bf commit70ea7ec

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎test/test_index.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
importre
1414
importshutil
1515
fromstatimportS_ISLNK,ST_MODE
16-
fromsubprocessimportCompletedProcess,run
16+
importsubprocess
1717
importtempfile
1818

1919
importddt
@@ -93,14 +93,14 @@ class Wsl:
9393
classWslNoDistro:
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
classCheckError:
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
exceptFileNotFoundError:
138138
returncls.Absent()
139139
exceptOSErroraserror:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp