Run stubtest on windows for colorama (#9168)

This commit is contained in:
Avasam
2022-11-12 19:14:15 -05:00
committed by GitHub
parent 02f2bc30e7
commit 24277cedf4
4 changed files with 11 additions and 7 deletions

View File

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

View 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

View File

@@ -2,3 +2,4 @@ version = "0.4.*"
[tool.stubtest]
ignore_missing_stub = false
platforms = ["win32", "linux"]

View File

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