Skip to content

Commit 6a014d8

Browse files
committed
another round of mypy fixes
1 parent fe38592 commit 6a014d8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pip/flatpak-pip-generator.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
from tomllib import load as toml_load
100100
except ModuleNotFoundError:
101101
try:
102-
from tomli import load as toml_load
102+
from tomli import load as toml_load # type: ignore
103103
except ModuleNotFoundError:
104104
sys.exit('tomli modules is not installed. Run "pip install tomli"')
105105

@@ -373,14 +373,14 @@ def fprint(string: str) -> None:
373373
for name, files_list in files.items():
374374
if len(files_list) > 1:
375375
zip_source = False
376-
for f in files[name]:
377-
if f.endswith(".zip"):
376+
for fname in files[name]:
377+
if fname.endswith(".zip"):
378378
zip_source = True
379379
if zip_source:
380-
for f in files[name]:
381-
if not f.endswith(".zip"):
380+
for fname in files[name]:
381+
if not fname.endswith(".zip"):
382382
with suppress(FileNotFoundError):
383-
os.remove(os.path.join(tempdir, f))
383+
os.remove(os.path.join(tempdir, fname))
384384

385385
vcs_packages: dict[str, dict[str, str | None]] = {
386386
str(x.name): {"vcs": x.vcs, "revision": x.revision, "uri": x.uri}

0 commit comments

Comments
 (0)