Add ceph
This commit is contained in:
65
ceph/qa-src-update-mypy-to-0.782.patch
Normal file
65
ceph/qa-src-update-mypy-to-0.782.patch
Normal file
@@ -0,0 +1,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
|
Reference in New Issue
Block a user