From ed915c5cde48329e3d1e597e60c4baee27b7854a Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Wed, 29 Mar 2023 12:52:43 +0100 Subject: [PATCH] Remove unnecessary `= ...`s; bump pyright test dependency to 1.1.301 (#9972) --- pyproject.toml | 2 +- stdlib/typing_extensions.pyi | 2 +- stubs/colorama/colorama/winterm.pyi | 23 ++++++++++++----------- 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 5deb8d4d6..9c049ac37 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -62,4 +62,4 @@ all = true disable_all_dunder_policy = true [tool.typeshed] -pyright_version = "1.1.299" +pyright_version = "1.1.301" diff --git a/stdlib/typing_extensions.pyi b/stdlib/typing_extensions.pyi index 1229f6275..d567d8b96 100644 --- a/stdlib/typing_extensions.pyi +++ b/stdlib/typing_extensions.pyi @@ -227,7 +227,7 @@ if sys.version_info >= (3, 11): ) else: Self: _SpecialForm - Never: _SpecialForm = ... + Never: _SpecialForm def reveal_type(__obj: _T) -> _T: ... def assert_never(__arg: Never) -> Never: ... def assert_type(__val: _T, __typ: Any) -> _T: ... diff --git a/stubs/colorama/colorama/winterm.pyi b/stubs/colorama/colorama/winterm.pyi index a653aa63a..f754e7b30 100644 --- a/stubs/colorama/colorama/winterm.pyi +++ b/stubs/colorama/colorama/winterm.pyi @@ -1,22 +1,23 @@ import sys +from typing import ClassVar if sys.platform == "win32": from . import win32 class WinColor: - BLACK: int = ... - BLUE: int = ... - GREEN: int = ... - CYAN: int = ... - RED: int = ... - MAGENTA: int = ... - YELLOW: int = ... - GREY: int = ... + BLACK: ClassVar[int] + BLUE: ClassVar[int] + GREEN: ClassVar[int] + CYAN: ClassVar[int] + RED: ClassVar[int] + MAGENTA: ClassVar[int] + YELLOW: ClassVar[int] + GREY: ClassVar[int] class WinStyle: - NORMAL: int = ... - BRIGHT: int = ... - BRIGHT_BACKGROUND: int = ... + NORMAL: ClassVar[int] + BRIGHT: ClassVar[int] + BRIGHT_BACKGROUND: ClassVar[int] class WinTerm: def __init__(self) -> None: ...