chore: use Final type annotation on every top-level constant (#1010)

This commit is contained in:
Matthieu Darbois
2022-02-11 16:08:28 -05:00
committed by GitHub
parent bc3106a4d0
commit 27db8355cd
3 changed files with 15 additions and 14 deletions
+2 -2
View File
@@ -4,9 +4,9 @@ import re
from enum import Enum
from typing import Set
from .typing import Literal, PlatformName, assert_never
from .typing import Final, Literal, PlatformName, assert_never
PRETTY_NAMES = {"linux": "Linux", "macos": "macOS", "windows": "Windows"}
PRETTY_NAMES: Final = {"linux": "Linux", "macos": "macOS", "windows": "Windows"}
@functools.total_ordering