Skip to content

Commit

Permalink
Closes #134
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn committed Aug 17, 2019
1 parent 924cfe9 commit a76e8e6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
language: python
dist: xenial

matrix:
fast_finish: true
include:
- python: 3.6
- python: 3.7
dist: xenial
sudo: true
- python: 3.7.3


before_install:
Expand Down
3 changes: 2 additions & 1 deletion returns/maybe.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
Callable,
Coroutine,
Generic,
NoReturn,
Optional,
TypeVar,
Union,
Expand Down Expand Up @@ -224,7 +225,7 @@ def Some(inner_value: Optional[_ValueType]) -> Maybe[_ValueType]: # noqa: N802


#: Public unit value of protected `_Nothing` type.
Nothing: Maybe[Any] = _Nothing()
Nothing: Maybe[NoReturn] = _Nothing()


@overload
Expand Down
10 changes: 3 additions & 7 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@
# Read more about `setup.cfg`:
# https://docs.python.org/3/distutils/configfile.html

[bdist_wheel]
universal = 1


[coverage:run]
branch = True
omit =
# We test mypy plugins with `pytest-mypy-plugins`,
# which does not work with coverage:
Expand Down Expand Up @@ -53,7 +49,7 @@ per-file-ignores =

[tool:pytest]
# py.test options:
norecursedirs = tests/fixtures *.egg .eggs dist build docs .tox .git __pycache__
norecursedirs = *.egg .eggs dist build docs .tox .git __pycache__

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

Expand All @@ -77,8 +74,7 @@ line_length = 79


[mypy]
# The mypy configurations: http://bit.ly/2zEl9WI
python_version = 3.6
# mypy configurations: http://bit.ly/2zEl9WI

# Plugins, includes custom:
plugins =
Expand Down

0 comments on commit a76e8e6

Please sign in to comment.