mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 22:11:54 +08:00
Run stubtest on windows for colorama (#9168)
This commit is contained in:
@@ -44,13 +44,6 @@ colorama.initialise.wrapped_stdout
|
||||
|
||||
# These are re-exports that are implementation detail:
|
||||
colorama.ansitowin32.BEL
|
||||
colorama.ansitowin32.windll
|
||||
colorama.winterm.get_osfhandle
|
||||
|
||||
# These are only available on Windows:
|
||||
colorama.winterm.WinColor
|
||||
colorama.winterm.WinStyle
|
||||
colorama.winterm.WinTerm
|
||||
|
||||
# Not planning on writing stubs for tests:
|
||||
colorama.tests.*
|
||||
|
||||
8
stubs/colorama/@tests/stubtest_allowlist_linux.txt
Normal file
8
stubs/colorama/@tests/stubtest_allowlist_linux.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
# These are only available on Windows:
|
||||
colorama.winterm.WinColor
|
||||
colorama.winterm.WinStyle
|
||||
colorama.winterm.WinTerm
|
||||
|
||||
# These are re-exports that are implementation detail:
|
||||
colorama.ansitowin32.windll
|
||||
colorama.winterm.get_osfhandle
|
||||
@@ -2,3 +2,4 @@ version = "0.4.*"
|
||||
|
||||
[tool.stubtest]
|
||||
ignore_missing_stub = false
|
||||
platforms = ["win32", "linux"]
|
||||
|
||||
@@ -25,6 +25,8 @@ if sys.platform == "win32":
|
||||
def FillConsoleOutputCharacter(stream_id: int, char: str, length: int, start: COORD) -> int: ...
|
||||
def FillConsoleOutputAttribute(stream_id: int, attr: int, length: int, start: COORD) -> wintypes.BOOL: ...
|
||||
def SetConsoleTitle(title: str) -> wintypes.BOOL: ...
|
||||
def GetConsoleMode(handle: int) -> int: ...
|
||||
def SetConsoleMode(handle: int, mode: int) -> None: ...
|
||||
|
||||
else:
|
||||
windll: None
|
||||
|
||||
Reference in New Issue
Block a user