Skip to content

Commit

Permalink
Annotate sys.platform as LiteralString (#13378)
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkdp authored Jan 9, 2025
1 parent e3e5971 commit 614e949
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/sys/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ from collections.abc import AsyncGenerator, Callable, Sequence
from io import TextIOWrapper
from types import FrameType, ModuleType, TracebackType
from typing import Any, Final, Literal, NoReturn, Protocol, TextIO, TypeVar, final, type_check_only
from typing_extensions import TypeAlias
from typing_extensions import LiteralString, TypeAlias

_T = TypeVar("_T")

Expand Down Expand Up @@ -45,7 +45,7 @@ if sys.version_info >= (3, 10):
path: list[str]
path_hooks: list[Callable[[str], PathEntryFinderProtocol]]
path_importer_cache: dict[str, PathEntryFinderProtocol | None]
platform: str
platform: LiteralString
if sys.version_info >= (3, 9):
platlibdir: str
prefix: str
Expand Down

0 comments on commit 614e949

Please sign in to comment.