Skip to content

Commit e806643

Browse files
committed
adjust types for compatability import
1 parent 45ced9e commit e806643

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

cwltool/docker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
from .secrets import SecretStore
2121
from .utils import docker_windows_path_adjust, onWindows
2222
if os.name == 'posix' and sys.version_info[0] < 3:
23-
import subprocess32 as subprocess # pylint: disable=import-error
23+
import subprocess32 as subprocess # type: ignore
2424
else:
25-
import subprocess
25+
import subprocess # type: ignore
2626

2727
_logger = logging.getLogger("cwltool")
2828

cwltool/docker_id.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
import sys
55
from typing import List, Text, Tuple
66
if os.name == 'posix' and sys.version_info[0] < 3:
7-
import subprocess32 as subprocess # pylint: disable=import-error
7+
import subprocess32 as subprocess # type: ignore
88
else:
9-
import subprocess
9+
import subprocess # type: ignore
1010

1111

1212
def docker_vm_id(): # type: () -> Tuple[int, int]

cwltool/job.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
from .utils import bytes2str_in_dicts
2929
from .utils import copytree_with_merge, onWindows
3030
if os.name == 'posix' and sys.version_info[0] < 3:
31-
import subprocess32 as subprocess # pylint: disable=import-error
31+
import subprocess32 as subprocess # type: ignore
3232
else:
33-
import subprocess
33+
import subprocess # type: ignore
3434

3535

3636
_logger = logging.getLogger("cwltool")

cwltool/sandboxjs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
except ImportError:
1919
import Queue as queue # type: ignore
2020
if os.name == 'posix' and sys.version_info[0] < 3:
21-
import subprocess32 as subprocess # pylint: disable=import-error
21+
import subprocess32 as subprocess # type: ignore
2222
else:
23-
import subprocess
23+
import subprocess # type: ignore
2424

2525

2626
class JavascriptException(Exception):

cwltool/singularity.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
from .process import (UnsupportedRequirement)
1414
from .utils import docker_windows_path_adjust
1515
if os.name == 'posix' and sys.version_info[0] < 3:
16-
import subprocess32 as subprocess # pylint: disable=import-error
16+
import subprocess32 as subprocess # type: ignore
1717
else:
18-
import subprocess
18+
import subprocess # type: ignore
1919

2020
_logger = logging.getLogger("cwltool")
2121
_USERNS = None

0 commit comments

Comments
 (0)