]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa,src: update mypy to 0.782 35771/head
authorSebastian Wagner <sebastian.wagner@suse.com>
Thu, 25 Jun 2020 12:11:54 +0000 (14:11 +0200)
committerSebastian Wagner <sebastian.wagner@suse.com>
Fri, 26 Jun 2020 10:27:32 +0000 (12:27 +0200)
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
qa/tox.ini
src/cephadm/tox.ini
src/pybind/mgr/dashboard/rest_client.py
src/pybind/mgr/tox.ini
src/python-common/requirements.txt

index 1b54ca0af3b4f66ea41d0850f26b353f5b46db52..e1583649f8ccbdd956e14203536151af1d8bef21 100644 (file)
@@ -10,7 +10,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:import-tasks]
index 579fdef47f1fa7ce073d47cad360db68080ee51f..3c7180ff9a5c7d8caad766325b8aecc591c22fdb 100644 (file)
@@ -12,5 +12,5 @@ commands=pytest {posargs}
 
 [testenv:mypy]
 basepython = python3
-deps = mypy
+deps = mypy==0.782
 commands = mypy {posargs:cephadm}
index 4d58d0dfde17f2b71093f36062b6b93d0427b5a4..7c04f36a0d7fd9b3030370ce40da400e40670e32 100644 (file)
@@ -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,
index 2995a4bd964b79dffc207491a50d894acab8149f..c30d0f0bac2b07474b94caaf1f774267b8319d26 100644 (file)
@@ -26,7 +26,7 @@ basepython = python3
 deps =
     cython
     -rrequirements.txt
-    mypy==0.770
+    mypy==0.782
 commands = mypy --config-file=../../mypy.ini \
            cephadm/module.py \
            mgr_module.py \
index a269fada78cbd35b44cf6ecb1932bcaba0aa1e00..7df43fb736afddb868d1baf54487b7890a17f43c 100644 (file)
@@ -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