Skip to content
Myr

Bump mypy from 0.982 to 1.0.1 (#2611)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* Bump mypy from 0.982 to 1.0.1 Bumps [mypy](https://github.com/python/mypy) from 0.982 to 1.0.1. - [Release notes](https://github.com/python/mypy/releases) - [Commits](https://github.com/python/mypy/compare/v0.982...v1.0.1) --- updated-dependencies: - dependency-name: mypy dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Remove unused ignores for mypy-1.0.1 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Michael Adkins <michael@prefect.io>

authored by dependabot[bot] · committed by GitHub · parent 99a080e · Browse files · 3 files+7 added−8 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+7 added−8 removed

  • other:+7 added−8 removed

3 files+7 added−8 removed

modified:httpx/_transports/default.py+2 added-2 removed
104 unmodified lines
105 yield part106107 def close(self) -> None:108 if hasattr(self._httpcore_stream, "close"):109 self._httpcore_stream.close() # type: ignore109 self._httpcore_stream.close()110111112class HTTPTransport(BaseTransport):113 def __init__(
126 unmodified lines
240 yield part241242 async def aclose(self) -> None:243 if hasattr(self._httpcore_stream, "aclose"):244 await self._httpcore_stream.aclose() # type: ignore244 await self._httpcore_stream.aclose()245246247class AsyncHTTPTransport(AsyncBaseTransport):248 def __init__(
117 unmodified lines
modified:httpx/_content.py+4 added-5 removed
52 unmodified lines
5354 self._is_stream_consumed = True55 if hasattr(self._stream, "read"):56 # File-like interfaces should use 'read' directly.57 chunk = self._stream.read(self.CHUNK_SIZE) # type: ignore57 chunk = self._stream.read(self.CHUNK_SIZE)58 while chunk:59 yield chunk60 chunk = self._stream.read(self.CHUNK_SIZE) # type: ignore60 chunk = self._stream.read(self.CHUNK_SIZE)61 else:62 # Otherwise iterate.63 for part in self._stream:64 yield part
13 unmodified lines
7879 self._is_stream_consumed = True80 if hasattr(self._stream, "aread"):81 # File-like interfaces should use 'aread' directly.82 chunk = await self._stream.aread(self.CHUNK_SIZE) # type: ignore82 chunk = await self._stream.aread(self.CHUNK_SIZE)83 while chunk:84 yield chunk85 chunk = await self._stream.aread(self.CHUNK_SIZE) # type: ignore85 chunk = await self._stream.aread(self.CHUNK_SIZE)86 else:87 # Otherwise iterate.88 async for part in self._stream:89 yield part
16 unmodified lines
106107def encode_content(108 content: Union[str, bytes, Iterable[bytes], AsyncIterable[bytes]]109) -> Tuple[Dict[str, str], Union[SyncByteStream, AsyncByteStream]]:110110 if isinstance(content, (bytes, str)):111 body = content.encode("utf-8") if isinstance(content, str) else content112 content_length = len(body)113 headers = {"Content-Length": str(content_length)} if body else {}
125 unmodified lines
modified:requirements.txt+1 added-1 removed
27 unmodified lines
28flake8-pie==0.16.0; python_version>='3.7'29importlib-metadata==4.13.0; python_version>='3.7'30isort==5.11.4; python_version<'3.8'31isort==5.12.0; python_version>='3.8'32mypy==0.98232mypy==1.0.133types-certifi==2021.10.8.234pytest==7.2.135trio==0.22.036trio-typing==0.7.0
2 unmodified lines