archrelease: copy trunk to community-any
[ArchLinux/community.git] / ceph / trunk / qa-src-update-mypy-to-0.782.patch
blob5b22c365e7733db98f80b7f15f55d478d03b32c5
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)
7 ---
8 qa/tox.ini | 2 +-
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
16 --- a/qa/tox.ini
17 +++ b/qa/tox.ini
18 @@ -16,7 +16,7 @@ commands=flake8 --select=F,E9 --exclude=venv,.tox
20 [testenv:mypy]
21 basepython = python3
22 -deps = mypy==0.770
23 +deps = mypy==0.782
24 commands = mypy {posargs:.}
26 [testenv:pytest]
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():
37 args_dict[key] = val
38 return func(
39 self,
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
45 deps =
46 cython
47 -rrequirements.txt
48 - mypy==0.770
49 + mypy==0.782
50 commands =
51 mypy --config-file=../../mypy.ini \
52 cephadm/module.py \
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
57 @@ -1,7 +1,7 @@
58 six
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'
65 pyyaml