mypy: Support mypy 1.15.0
Change-Id: I46ad60a060a3310a3d2a762fc99bec701249b7d9
This commit is contained in:
parent
fff98b182e
commit
f988ac3136
@ -439,6 +439,7 @@ class BackupManager(manager.SchedulerDependentManager):
|
|||||||
except Exception as err:
|
except Exception as err:
|
||||||
with excutils.save_and_reraise_exception():
|
with excutils.save_and_reraise_exception():
|
||||||
if snapshot_id:
|
if snapshot_id:
|
||||||
|
assert snapshot is not None
|
||||||
snapshot.status = fields.SnapshotStatus.AVAILABLE
|
snapshot.status = fields.SnapshotStatus.AVAILABLE
|
||||||
snapshot.save()
|
snapshot.save()
|
||||||
else:
|
else:
|
||||||
|
@ -1312,7 +1312,7 @@ def resolve_hostname(hostname: str) -> str:
|
|||||||
ip = socket.getaddrinfo(hostname, None)[0][4][0]
|
ip = socket.getaddrinfo(hostname, None)[0][4][0]
|
||||||
LOG.debug('Asked to resolve hostname %(host)s and got IP %(ip)s.',
|
LOG.debug('Asked to resolve hostname %(host)s and got IP %(ip)s.',
|
||||||
{'host': hostname, 'ip': ip})
|
{'host': hostname, 'ip': ip})
|
||||||
return ip
|
return str(ip)
|
||||||
|
|
||||||
|
|
||||||
def update_backup_error(backup,
|
def update_backup_error(backup,
|
||||||
|
@ -18,6 +18,6 @@ SQLAlchemy-Utils>=0.37.8 # BSD License
|
|||||||
testtools>=2.4.0 # MIT
|
testtools>=2.4.0 # MIT
|
||||||
|
|
||||||
doc8>=0.8.1 # Apache-2.0
|
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
|
moto>=5.0.0 # Apache-2.0
|
||||||
distro>=1.8.0 # Apache-2.0
|
distro>=1.8.0 # Apache-2.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user