Skip to content

Commit

Permalink
Bump mypy from 0.790 to 0.812 (#571)
Browse files Browse the repository at this point in the history
Bumps [mypy](https://github.com/python/mypy) from 0.790 to 0.812.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](python/mypy@v0.790...v0.812)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] authored May 26, 2021
1 parent fba85d7 commit 47ab438
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 9 deletions.
2 changes: 1 addition & 1 deletion requirements/lint.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mypy==0.790; implementation_name=="cpython"
mypy==0.812; implementation_name=="cpython"
flake8==3.9.2
flake8-pyi==20.10.0; python_version >= "3.6"
black==21.5b1; python_version >= "3.6"
Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ addopts = --doctest-modules --cov=multidict --cov-report term-missing:skip-cover
doctest_optionflags = ALLOW_UNICODE ELLIPSIS
junit_family = xunit2

[mypy]

[mypy-pytest]
ignore_missing_imports = true

Expand Down
5 changes: 4 additions & 1 deletion tests/gen_pickles.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
from multidict._multidict_py import MultiDict as PyMultiDict # noqa

try:
from multidict._multidict import CIMultiDict, MultiDict # noqa
from multidict._multidict import ( # type: ignore # noqa
CIMultiDict,
MultiDict,
)
except ImportError:
pass

Expand Down
2 changes: 1 addition & 1 deletion tests/test_abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from multidict._multidict_py import MultiDictProxy as PyMultiDictProxy

if USE_CYTHON:
from multidict._multidict import (
from multidict._multidict import ( # type: ignore
CIMultiDict,
CIMultiDictProxy,
MultiDict,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_copy.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from multidict._multidict_py import MultiDictProxy as PyMultiDictProxy

if USE_CYTHON:
from multidict._multidict import (
from multidict._multidict import ( # type: ignore
CIMultiDict,
CIMultiDictProxy,
MultiDict,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_guard.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from multidict._multidict_py import MultiDict as PyMultiDict # noqa: E402

if USE_CYTHON:
from multidict._multidict import MultiDict
from multidict._multidict import MultiDict # type: ignore


@pytest.fixture(
Expand Down
2 changes: 1 addition & 1 deletion tests/test_istr.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from multidict._multidict_py import istr as _istr # noqa: E402

if USE_CYTHON:
from multidict._multidict import istr
from multidict._multidict import istr # type: ignore
else:
from multidict import istr

Expand Down
2 changes: 1 addition & 1 deletion tests/test_pickle.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from multidict._multidict_py import MultiDictProxy as PyMultiDictProxy

if USE_CYTHON:
from multidict._multidict import (
from multidict._multidict import ( # type: ignore
CIMultiDict,
CIMultiDictProxy,
MultiDict,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from multidict._multidict_py import MultiDict as PyMultiDict # noqa: E402

if USE_CYTHON:
from multidict._multidict import CIMultiDict, MultiDict
from multidict._multidict import CIMultiDict, MultiDict # type: ignore


@pytest.fixture(
Expand Down
6 changes: 5 additions & 1 deletion tests/test_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
from multidict._multidict_py import getversion as _getversion

if USE_CYTHON:
from multidict._multidict import CIMultiDict, MultiDict, getversion
from multidict._multidict import ( # type: ignore
CIMultiDict,
MultiDict,
getversion,
)


class VersionMixin:
Expand Down

0 comments on commit 47ab438

Please sign in to comment.