Skip to content

Commit a76e8e6

Browse files
committed
Closes #134
1 parent 924cfe9 commit a76e8e6

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

.travis.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
language: python
2+
dist: xenial
23

34
matrix:
4-
fast_finish: true
55
include:
66
- python: 3.6
7-
- python: 3.7
8-
dist: xenial
9-
sudo: true
7+
- python: 3.7.3
108

119

1210
before_install:

returns/maybe.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
Callable,
99
Coroutine,
1010
Generic,
11+
NoReturn,
1112
Optional,
1213
TypeVar,
1314
Union,
@@ -224,7 +225,7 @@ def Some(inner_value: Optional[_ValueType]) -> Maybe[_ValueType]: # noqa: N802
224225

225226

226227
#: Public unit value of protected `_Nothing` type.
227-
Nothing: Maybe[Any] = _Nothing()
228+
Nothing: Maybe[NoReturn] = _Nothing()
228229

229230

230231
@overload

setup.cfg

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,8 @@
22
# Read more about `setup.cfg`:
33
# https://docs.python.org/3/distutils/configfile.html
44

5-
[bdist_wheel]
6-
universal = 1
7-
85

96
[coverage:run]
10-
branch = True
117
omit =
128
# We test mypy plugins with `pytest-mypy-plugins`,
139
# which does not work with coverage:
@@ -53,7 +49,7 @@ per-file-ignores =
5349

5450
[tool:pytest]
5551
# py.test options:
56-
norecursedirs = tests/fixtures *.egg .eggs dist build docs .tox .git __pycache__
52+
norecursedirs = *.egg .eggs dist build docs .tox .git __pycache__
5753

5854
# You will need to measure your tests speed with `-n auto` and without it,
5955
# so you can see whether it gives you any performance gain, or just gives
@@ -63,6 +59,7 @@ addopts =
6359
--cov=returns
6460
--cov-report=term:skip-covered
6561
--cov-report=html
62+
--cov-branch
6663
--cov-fail-under=100
6764
--mypy-ini-file=setup.cfg
6865

@@ -77,8 +74,7 @@ line_length = 79
7774

7875

7976
[mypy]
80-
# The mypy configurations: http://bit.ly/2zEl9WI
81-
python_version = 3.6
77+
# mypy configurations: http://bit.ly/2zEl9WI
8278

8379
# Plugins, includes custom:
8480
plugins =

0 commit comments

Comments
 (0)