Fix a few types to keep pyright happy

This commit is contained in:
Joe Rickerby
2023-05-08 21:05:24 +01:00
parent 00f6526ff5
commit d7759bf876
2 changed files with 10 additions and 5 deletions
+5 -1
View File
@@ -10,7 +10,11 @@ from enum import Enum
from ._compat.typing import Final, Literal, assert_never
from .typing import PlatformName
PRETTY_NAMES: Final = {"linux": "Linux", "macos": "macOS", "windows": "Windows"}
PRETTY_NAMES: Final[dict[PlatformName, str]] = {
"linux": "Linux",
"macos": "macOS",
"windows": "Windows",
}
ARCH_SYNONYMS: Final[list[dict[PlatformName, str | None]]] = [
{"linux": "x86_64", "macos": "x86_64", "windows": "AMD64"},