Skip to content

Commit

Permalink
Upgrade mypy to 0.630
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlia committed Sep 22, 2018
1 parent 152073a commit 7290fa8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -17,7 +17,7 @@ commands =
[testenv:mypy]
basepython = python3
deps =
mypy >= 0.600
mypy >= 0.630
commands =
mypy -p wikidata
mypy -p tests
Expand Down
3 changes: 1 addition & 2 deletions wikidata/client.py
Expand Up @@ -191,8 +191,7 @@ def request(self, path: str) -> Union[
if result is None:
logger.debug('%r: no cache; make a request...', url)
response = self.opener.open(url)
buffer_ = io.TextIOWrapper(response, # type: ignore
encoding='utf-8')
buffer_ = io.TextIOWrapper(response, encoding='utf-8')
result = json.load(buffer_)
self.cache_policy.set(CacheKey(url), result)
else:
Expand Down

0 comments on commit 7290fa8

Please sign in to comment.