diff --git a/cinder/volume/api.py b/cinder/volume/api.py index 39e3efa5d51..ff98c9401f7 100644 --- a/cinder/volume/api.py +++ b/cinder/volume/api.py @@ -555,7 +555,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 10c8d6acb8a..0097afc5260 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