summarylogtreecommitdiffstats
path: root/qa-src-update-mypy-to-0.782.patch
blob: 5b22c365e7733db98f80b7f15f55d478d03b32c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
From a61e8e3b6052bf158fe63ab1cd66197f4ffc3900 Mon Sep 17 00:00:00 2001
From: Sebastian Wagner <sebastian.wagner@suse.com>
Date: Thu, 25 Jun 2020 14:11:54 +0200
Subject: [PATCH] qa,src: update mypy to 0.782

(cherry picked from commit 78f3473f55afe14698dc702e24cf34030223a373)
---
 qa/tox.ini                              | 2 +-
 src/pybind/mgr/dashboard/rest_client.py | 2 +-
 src/pybind/mgr/tox.ini                  | 2 +-
 src/python-common/requirements.txt      | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/qa/tox.ini b/qa/tox.ini
index 31a1ef4fd4..33ad2db968 100644
--- a/qa/tox.ini
+++ b/qa/tox.ini
@@ -16,7 +16,7 @@ commands=flake8 --select=F,E9 --exclude=venv,.tox
 
 [testenv:mypy]
 basepython = python3
-deps = mypy==0.770
+deps = mypy==0.782
 commands = mypy {posargs:.}
 
 [testenv:pytest]
diff --git a/src/pybind/mgr/dashboard/rest_client.py b/src/pybind/mgr/dashboard/rest_client.py
index 4d58d0dfde..7c04f36a0d 100644
--- a/src/pybind/mgr/dashboard/rest_client.py
+++ b/src/pybind/mgr/dashboard/rest_client.py
@@ -511,7 +511,7 @@ class RestClient(object):
                 resp_structure = api_kwargs.get('resp_structure', None)
                 args_name = inspect.getargspec(func).args
                 args_dict = dict(zip(args_name[1:], args))
-                for key, val in kwargs:
+                for key, val in kwargs.items():
                     args_dict[key] = val
                 return func(
                     self,
diff --git a/src/pybind/mgr/tox.ini b/src/pybind/mgr/tox.ini
index 3e129ba64e..4c65be7f16 100644
--- a/src/pybind/mgr/tox.ini
+++ b/src/pybind/mgr/tox.ini
@@ -47,7 +47,7 @@ basepython = python3
 deps =
     cython
     -rrequirements.txt
-    mypy==0.770
+    mypy==0.782
 commands =
     mypy --config-file=../../mypy.ini \
            cephadm/module.py \
diff --git a/src/python-common/requirements.txt b/src/python-common/requirements.txt
index a269fada78..7df43fb736 100644
--- a/src/python-common/requirements.txt
+++ b/src/python-common/requirements.txt
@@ -1,7 +1,7 @@
 six
 pytest >=2.1.3,<5; python_version < '3.5'
 mock; python_version < '3.3'
-mypy==0.770; python_version >= '3'
+mypy==0.782; python_version >= '3'
 pytest-mypy; python_version >= '3'
 pytest >= 2.1.3; python_version >= '3'
 pyyaml