1 From a61e8e3b6052bf158fe63ab1cd66197f4ffc3900 Mon Sep 17 00:00:00 2001
2 From: Sebastian Wagner <sebastian.wagner@suse.com>
3 Date: Thu, 25 Jun 2020 14:11:54 +0200
4 Subject: [PATCH] qa,src: update mypy to 0.782
6 (cherry picked from commit 78f3473f55afe14698dc702e24cf34030223a373)
9 src/pybind/mgr/dashboard/rest_client.py | 2 +-
10 src/pybind/mgr/tox.ini | 2 +-
11 src/python-common/requirements.txt | 2 +-
12 4 files changed, 4 insertions(+), 4 deletions(-)
14 diff --git a/qa/tox.ini b/qa/tox.ini
15 index 31a1ef4fd4..33ad2db968 100644
18 @@ -16,7 +16,7 @@ commands=flake8 --select=F,E9 --exclude=venv,.tox
24 commands = mypy {posargs:.}
27 diff --git a/src/pybind/mgr/dashboard/rest_client.py b/src/pybind/mgr/dashboard/rest_client.py
28 index 4d58d0dfde..7c04f36a0d 100644
29 --- a/src/pybind/mgr/dashboard/rest_client.py
30 +++ b/src/pybind/mgr/dashboard/rest_client.py
31 @@ -511,7 +511,7 @@ class RestClient(object):
32 resp_structure = api_kwargs.get('resp_structure', None)
33 args_name = inspect.getargspec(func).args
34 args_dict = dict(zip(args_name[1:], args))
35 - for key, val in kwargs:
36 + for key, val in kwargs.items():
40 diff --git a/src/pybind/mgr/tox.ini b/src/pybind/mgr/tox.ini
41 index 3e129ba64e..4c65be7f16 100644
42 --- a/src/pybind/mgr/tox.ini
43 +++ b/src/pybind/mgr/tox.ini
44 @@ -47,7 +47,7 @@ basepython = python3
51 mypy --config-file=../../mypy.ini \
53 diff --git a/src/python-common/requirements.txt b/src/python-common/requirements.txt
54 index a269fada78..7df43fb736 100644
55 --- a/src/python-common/requirements.txt
56 +++ b/src/python-common/requirements.txt
59 pytest >=2.1.3,<5; python_version < '3.5'
60 mock; python_version < '3.3'
61 -mypy==0.770; python_version >= '3'
62 +mypy==0.782; python_version >= '3'
63 pytest-mypy; python_version >= '3'
64 pytest >= 2.1.3; python_version >= '3'