Skip to content
Myr

Bump mypy from 0.910 to 0.961 (#2269)

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

* Bump mypy from 0.910 to 0.961 Bumps [mypy](https://github.com/python/mypy) from 0.910 to 0.961. - [Release notes](https://github.com/python/mypy/releases) - [Commits](https://github.com/python/mypy/compare/v0.910...v0.961) --- updated-dependencies: - dependency-name: mypy dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Handle py37 iscoroutine type guard oddity Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: florimondmanca <florimond.manca@protonmail.com>

authored by dependabot[bot] · committed by GitHub · parent 132ccd9 · Browse files · 3 files+13 added−3 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+13 added−3 removed

  • other:+13 added−3 removed

3 files+13 added−3 removed

modified:httpx/_transports/mock.py+2 added-2 removed
1import asyncio1import typing23from .._compat import iscoroutine4from .._models import Request, Response5from .base import AsyncBaseTransport, BaseTransport67
19 unmodified lines
27 # If it is, then the `response` variable need to be awaited to actually28 # return the result.2930 # https://simonwillison.net/2020/Sep/2/await-me-maybe/31 if asyncio.iscoroutine(response):31 if iscoroutine(response):32 response = await response3334 return response
modified:httpx/_compat.py+10 added
1"""2The _compat module is used for code which requires branching between different3Python environments. It is excluded from the code coverage checks.4"""5import asyncio6import ssl7import sys8import typing910if typing.TYPE_CHECKING: # pragma: no cover11 import typing_extensions1213# Brotli support is optional14# The C bindings in `brotli` are recommended for CPython.15# The CFFI bindings in `brotlicffi` are recommended for PyPy and everything else.16try:
25 unmodified lines
42 context.options |= ssl.OP_NO_SSLv243 context.options |= ssl.OP_NO_SSLv344 context.options |= ssl.OP_NO_TLSv145 context.options |= ssl.OP_NO_TLSv1_1464748def iscoroutine(coro: object) -> "typing_extensions.TypeGuard[typing.Coroutine]":49 # Drop when this is resolved: https://github.com/python/typeshed/pull/810450 return asyncio.iscoroutine(coro)
modified:requirements.txt+1 added-1 removed
25 unmodified lines
26flake8==3.9.227flake8-bugbear==22.4.2528flake8-pie==0.15.0; python_version>='3.7'29isort==5.10.130mypy==0.91030mypy==0.96131types-certifi==2021.10.8.232pytest==7.1.233pytest-asyncio==0.18.334pytest-trio==0.7.0
4 unmodified lines