Bump mypy to 1.0

mypy 1.0 no longer needs one "type: ignore" comment
that we have currently, which must be fixed to resolve
an unused-ignore error.

Depends-On: Ide07cf7f7c5175026f897e0a1686911c0c93da21
Change-Id: If2e7e94af0725421403ca8bfad0e5fdfd513ab12
This commit is contained in:
Eric Harney 2023-02-27 11:59:05 -05:00
parent 5a3664ae2e
commit 6c0bbe10a9
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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