Skip to content

Commit e626ed8

Browse files
committed
Broken: debuging mypy
1 parent 7f6d859 commit e626ed8

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ install: poetry install
1818

1919
script:
2020
- flake8 .
21-
- mypy returns tests/**/*.py
21+
- mypy returns ./tests/**/*.py
22+
- mypy tests/test_io/test_ioresult_container/test_ioresult_bind.py
2223
- pytest . docs/pages
2324
- doc8 -q docs
2425
- poetry check

returns/io.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,12 +293,12 @@ def map( # noqa: A003
293293
return self.from_result(self._inner_value.map(function))
294294

295295
def bind(
296-
self: 'IOResult[_ValueType, _T]',
296+
self: 'IOResult[_ValueType, _ErrorType]',
297297
function: Callable[
298298
[_ValueType],
299-
'IOResult[_NewValueType, _T]',
299+
'IOResult[_NewValueType, _ErrorType]',
300300
],
301-
) -> 'IOResult[_NewValueType, _T]':
301+
) -> 'IOResult[_NewValueType, _ErrorType]':
302302
"""
303303
Composes successful container with a function that returns a container.
304304

0 commit comments

Comments
 (0)