summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2023-03-30 10:34:06 +0000
committerGerrit Code Review <review@openstack.org>2023-03-30 10:34:06 +0000
commit19250d3f24e64b28e1d079a81759d533e5c22753 (patch)
treed041370b1b506525f28a0fecce85bdaecbfca680
parent3fc37548042fcdc745d35a0a902213482fc4422c (diff)
parent6c0bbe10a9e3e4f7dd1bd87dd8e8f858cda9f9de (diff)
downloadcinder-19250d3f24e64b28e1d079a81759d533e5c22753.tar.gz
Merge "Bump mypy to 1.0"
-rw-r--r--cinder/volume/api.py2
-rw-r--r--test-requirements.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/cinder/volume/api.py b/cinder/volume/api.py
index c36d1715e..480f4dc95 100644
--- a/cinder/volume/api.py
+++ b/cinder/volume/api.py
@@ -553,7 +553,7 @@ class API(base.Base):
if hasattr(e, 'msg'):
# ignore type (Exception has no attr "msg") error
msg = _("Unable to delete encryption key for "
- "volume: %s") % (e.msg) # type: ignore
+ "volume: %s") % (e.msg)
else:
msg = _("Unable to delete encryption key for volume.")
LOG.error(msg)
diff --git a/test-requirements.txt b/test-requirements.txt
index 10c8d6acb..0097afc52 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -18,5 +18,5 @@ SQLAlchemy-Utils>=0.37.8 # BSD License
testtools>=2.4.0 # MIT
doc8>=0.8.1 # Apache-2.0
-mypy>=0.981 # MIT
+mypy>=1.0 # MIT
moto>=2.2.5 # Apache-2.0