Skip to content

Commit 3634494

Browse files
authored
Update mypy version (#266)
* update mypy version * introduce 'Generic' for better type support * invert semantic of parameter
1 parent 8eb70e6 commit 3634494

17 files changed

+285
-222
lines changed

poetry.lock

Lines changed: 24 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pylint = "^2.6.0"
2727
black = "^20.8b1"
2828
pytest = "^6.2.1"
2929
setuptools-scm = "^3.3.3"
30-
mypy = "^0.770"
30+
mypy = "^0.800"
3131

3232
[build-system]
3333
requires = ["poetry>=0.12"]

tests/test_bounding_box.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import pytest
33

44

5-
def test_align_with_mag_ceiled():
5+
def test_align_with_mag_ceiled() -> None:
66

77
assert BoundingBox((1, 1, 1), (10, 10, 10)).align_with_mag(
88
Mag(2), ceil=True
@@ -18,7 +18,7 @@ def test_align_with_mag_ceiled():
1818
) == BoundingBox(topleft=(0, 2, 2), size=(10, 10, 10))
1919

2020

21-
def test_align_with_mag_floored():
21+
def test_align_with_mag_floored() -> None:
2222

2323
assert BoundingBox((1, 1, 1), (10, 10, 10)).align_with_mag(Mag(2)) == BoundingBox(
2424
topleft=(2, 2, 2), size=(8, 8, 8)
@@ -34,7 +34,7 @@ def test_align_with_mag_floored():
3434
)
3535

3636

37-
def test_in_mag():
37+
def test_in_mag() -> None:
3838

3939
with pytest.raises(AssertionError):
4040
BoundingBox((1, 2, 3), (9, 9, 9)).in_mag(Mag(2))

0 commit comments

Comments
 (0)