Skip to content

Commit 9a39d61

Browse files
committed
Fix typing
1 parent 4cdecd4 commit 9a39d61

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

extra_platforms/platforms.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def visit(path, key, value) -> bool:
8585
return False
8686
return True
8787

88-
return remap(tree, visit=visit)
88+
return remap(tree, visit=visit) # type: ignore[no-any-return]
8989

9090

9191
@dataclass(frozen=True)
@@ -129,10 +129,10 @@ def info(self) -> dict[str, str | bool | None | dict[str, str | None]]:
129129
}
130130
# Get extra info from distro.
131131
if self.current:
132-
distro_info = distro.info()
132+
d_info = dict(distro.info())
133133
# Rename distro ID to avoid conflict with our own ID.
134-
distro_info["distro_id"] = distro_info.pop("id")
135-
info = _recursive_update(info, _remove_blanks(distro_info))
134+
d_info["distro_id"] = d_info.pop("id")
135+
info = _recursive_update(info, _remove_blanks(d_info))
136136
return info
137137

138138

0 commit comments

Comments
 (0)