Remove unnecessary = ...s; bump pyright test dependency to 1.1.301 (#9972)

This commit is contained in:
Alex Waygood
2023-03-29 12:52:43 +01:00
committed by GitHub
parent 027460f11a
commit ed915c5cde
3 changed files with 14 additions and 13 deletions

View File

@@ -62,4 +62,4 @@ all = true
disable_all_dunder_policy = true
[tool.typeshed]
pyright_version = "1.1.299"
pyright_version = "1.1.301"

View File

@@ -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: ...

View File

@@ -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: ...