mypy: Support mypy 1.15.0

Change-Id: I46ad60a060a3310a3d2a762fc99bec701249b7d9
This commit is contained in:
Eric Harney 2025-02-06 10:38:59 -05:00
parent fff98b182e
commit f988ac3136
3 changed files with 3 additions and 2 deletions

View File

@ -439,6 +439,7 @@ class BackupManager(manager.SchedulerDependentManager):
except Exception as err:
with excutils.save_and_reraise_exception():
if snapshot_id:
assert snapshot is not None
snapshot.status = fields.SnapshotStatus.AVAILABLE
snapshot.save()
else:

View File

@ -1312,7 +1312,7 @@ def resolve_hostname(hostname: str) -> str:
ip = socket.getaddrinfo(hostname, None)[0][4][0]
LOG.debug('Asked to resolve hostname %(host)s and got IP %(ip)s.',
{'host': hostname, 'ip': ip})
return ip
return str(ip)
def update_backup_error(backup,

View File

@ -18,6 +18,6 @@ SQLAlchemy-Utils>=0.37.8 # BSD License
testtools>=2.4.0 # MIT
doc8>=0.8.1 # Apache-2.0
mypy>=1.7.0,<1.14.0 # MIT
mypy>=1.7.0,<1.16.0 # MIT
moto>=5.0.0 # Apache-2.0
distro>=1.8.0 # Apache-2.0