Skip to content

Commit 0c7597f

Browse files
committed
mypy fixes
1 parent 3ca7de9 commit 0c7597f

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/relic/sga/core/cli.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -241,25 +241,25 @@ def _getessence(fs: FS, path: str = "/") -> Dict[str, Any]:
241241
# We alter storage_type cause it *should* always be present, if its not, we dont do anything
242242
key = "storage_type"
243243
if key in finfo:
244-
v: int = finfo[key]
245-
st: StorageType = StorageType(v)
246-
finfo[key] = f"{v} ({st.name})"
244+
stv: int = finfo[key]
245+
st: StorageType = StorageType(stv)
246+
finfo[key] = f"{stv} ({st.name})"
247247

248248
# We alter modified too, cause when it is present, its garbage
249249
key = "modified"
250250
if key in finfo:
251-
v: int = finfo[key]
251+
mtv: int = finfo[key]
252252
mt = datetime.datetime.fromtimestamp(
253-
v, datetime.timezone.utc
253+
mtv, datetime.timezone.utc
254254
)
255255
finfo[key] = str(mt)
256256

257257
# And CRC32 if it's in bytes; this should be removed ASAP tho # I only put this in because its such a minor patch to V2
258258
key = "crc32"
259259
if key in finfo:
260-
v: bytes = finfo[key]
261-
if isinstance(v, bytes):
262-
crc32 = int.from_bytes(v, "little", signed=False)
260+
crcv: bytes = finfo[key]
261+
if isinstance(crcv, bytes):
262+
crc32 = int.from_bytes(crcv, "little", signed=False)
263263
finfo[key] = crc32
264264

265265
if len(finfo) > 0:

0 commit comments

Comments
 (0)