Skip to content

Commit 814bd04

Browse files
committed
upgrade to mypy 0.780
1 parent d7b1bf3 commit 814bd04

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

cwltool/provenance.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from typing import (
1616
IO,
1717
Any,
18+
BinaryIO,
1819
Callable,
1920
Dict,
2021
Generator,
@@ -427,7 +428,7 @@ def write_bag_file(
427428
# encoding: match Tag-File-Character-Encoding: UTF-8
428429
# newline: ensure LF also on Windows
429430
return TextIOWrapper(
430-
cast(IO[bytes], bag_file), encoding=encoding, newline="\n"
431+
cast(BinaryIO, bag_file), encoding=encoding, newline="\n"
431432
)
432433
return bag_file
433434

cwltool/provenance_profile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from typing_extensions import TYPE_CHECKING
1313

1414
from prov.identifier import Identifier
15-
from prov.model import PROV, PROV_TYPE, ProvDocument, ProvEntity, PROV_LABEL, PROV_VALUE
15+
from prov.model import PROV, PROV_LABEL, PROV_TYPE, PROV_VALUE, ProvDocument, ProvEntity
1616

1717
from .errors import WorkflowException
1818
from .loghandler import _logger

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ deps =
3838
py{35,36,37,38}-unit: galaxy-tool-util
3939
py{35,36,37,38}-lint: flake8
4040
py{35,36,37,38}-bandit: bandit
41-
py{35,36,37,38}-mypy: mypy==0.770
41+
py{35,36,37,38}-mypy: mypy==0.780
4242

4343
setenv =
4444
py{35,36,37,38}-unit: LC_ALL = C

0 commit comments

Comments
 (0)