Skip to content

Commit 4f3dfab

Browse files
committed
Use Deque from typing-extensions
1 parent 20ae02c commit 4f3dfab

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

cwltool/utils.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,8 @@
1010
import pkg_resources
1111
from functools import partial # pylint: disable=unused-import
1212
from typing import (IO, Any, AnyStr, Callable, # pylint: disable=unused-import
13-
Dict, Iterable, List, Optional, Text, Tuple, TypeVar, Union,
14-
TYPE_CHECKING)
15-
16-
if TYPE_CHECKING:
17-
from typing import Deque
13+
Dict, Iterable, List, Optional, Text, Tuple, TypeVar, Union)
14+
from typing_extensions import Deque
1815

1916
import six
2017
from six.moves import urllib, zip_longest

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ bagit==1.6.4
1010
mypy-extensions
1111
psutil
1212
subprocess32 >= 3.5.0; os.name=="posix"
13+
typing-extensions

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
'psutil',
6161
'prov == 1.5.1',
6262
'bagit >= 1.6.4',
63+
'typing-extensions',
6364
],
6465
extras_require={
6566
':os.name=="posix"': ['subprocess32 >= 3.5.0'],

0 commit comments

Comments
 (0)