Skip to content

Commit

Permalink
Bump mypy from 0.981 to 0.991 (#634)
Browse files Browse the repository at this point in the history
* Bump mypy from 0.981 to 0.991

Bumps [mypy](https://github.com/python/mypy) from 0.981 to 0.991.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](python/mypy@v0.981...v0.991)

---
updated-dependencies:
- dependency-name: mypy
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update _models.py

* Update connection_pool.py

* Update connection_pool.py

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom Christie <[email protected]>
  • Loading branch information
dependabot[bot] and tomchristie authored Dec 8, 2022
1 parent 23cbfca commit 54f4485
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion httpcore/_async/connection_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,6 @@ async def __aiter__(self) -> AsyncIterator[bytes]:
async def aclose(self) -> None:
try:
if hasattr(self._stream, "aclose"):
await self._stream.aclose() # type: ignore
await self._stream.aclose()
finally:
await self._pool.response_closed(self._status)
4 changes: 2 additions & 2 deletions httpcore/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ def close(self) -> None:
"You should use 'await response.aclose()' instead."
)
if hasattr(self.stream, "close"):
self.stream.close() # type: ignore
self.stream.close()

# Async interface...

Expand Down Expand Up @@ -480,4 +480,4 @@ async def aclose(self) -> None:
"You should use 'response.close()' instead."
)
if hasattr(self.stream, "aclose"):
await self.stream.aclose() # type: ignore
await self.stream.aclose()
2 changes: 1 addition & 1 deletion httpcore/_sync/connection_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,6 @@ def __iter__(self) -> Iterator[bytes]:
def close(self) -> None:
try:
if hasattr(self._stream, "close"):
self._stream.close() # type: ignore
self._stream.close()
finally:
self._pool.response_closed(self._status)
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ coverage==6.5.0
flake8==3.9.2 # See: https://github.com/PyCQA/flake8/pull/1438
isort==5.10.1
importlib-metadata==4.13.0
mypy==0.981
mypy==0.991
trio-typing==0.7.0
types-certifi==2021.10.8.3
pytest==7.2.0
Expand Down

0 comments on commit 54f4485

Please sign in to comment.