Skip to content

Commit 28e2767

Browse files
Merge pull request #853 from VWS-Python/bump-mypy
Bump mypy
2 parents 964c151 + 90427fe commit 28e2767

File tree

4 files changed

+4
-10
lines changed

4 files changed

+4
-10
lines changed

dev-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ flake8==3.8.4 # Lint
1414
freezegun==1.1.0 # Freeze time in tests
1515
isort==5.7.0 # Lint imports
1616
keyring==22.0.1
17-
mypy==0.790 # Type checking
17+
mypy==0.800 # Type checking
1818
pip_check_reqs==2.1.1
1919
pydocstyle==5.1.1 # Lint docstrings
2020
pyenchant==3.2.0 # Bindings for a spellchecking sytem

lint.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ fix-black:
1818

1919
.PHONY: mypy
2020
mypy:
21-
mypy *.py src/ tests/ docs/source/ admin ci/
21+
mypy .
2222

2323
.PHONY: check-manifest
2424
check-manifest:

src/mock_vws/_flask_server/vwq.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,7 @@ class ResponseNoContentTypeAdded(Response):
6969
Without this, a content type is added to all responses.
7070
Some of our responses need to not have a "Content-Type" header.
7171
"""
72-
73-
# When https://github.com/python/typeshed/pull/4563 is shipped in a future
74-
# release of mypy, we can remove this ignore.
75-
default_mimetype = None # type: ignore
72+
default_mimetype = None
7673

7774

7875
CLOUDRECO_FLASK_APP.response_class = ResponseNoContentTypeAdded

src/mock_vws/_flask_server/vws.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,7 @@ class ResponseNoContentTypeAdded(Response):
5252
Without this, a content type is added to all responses.
5353
Some of our responses need to not have a "Content-Type" header.
5454
"""
55-
56-
# When https://github.com/python/typeshed/pull/4563 is shipped in a future
57-
# release of mypy, we can remove this ignore.
58-
default_mimetype = None # type: ignore
55+
default_mimetype = None
5956

6057

6158
VWS_FLASK_APP.response_class = ResponseNoContentTypeAdded

0 commit comments

Comments
 (0)