1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-26 09:47:58 +00:00

fs.py: fix bug in f-string - thanks mypy!

This commit is contained in:
Thomas Waldmann 2023-01-30 02:36:42 +01:00
parent 90a9a124d4
commit a863249394
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

View file

@ -230,7 +230,7 @@ def remember(self, *, id, info):
chunks / chunks_healthy list
hlid
"""
assert isinstance(id, self.id_type), f"key is {key!r}, not of type {self.key_type}"
assert isinstance(id, self.id_type), f"id is {id!r}, not of type {self.id_type}"
assert isinstance(info, self.info_type), f"info is {info!r}, not of type {self.info_type}"
self._map[id] = info
@ -238,7 +238,7 @@ def retrieve(self, id, *, default=None):
"""
retrieve stuff to use it in a (usually contentless) item.
"""
assert isinstance(id, self.id_type)
assert isinstance(id, self.id_type), f"id is {id!r}, not of type {self.id_type}"
return self._map.get(id, default)