Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run stubtest on windows for colorama #9168

Merged
merged 5 commits into from
Nov 13, 2022

Conversation

Avasam
Copy link
Collaborator

@Avasam Avasam commented Nov 12, 2022

One of the stubs that benefit from #8923
In fact, stubtest found 2 missing methods on windows!

@github-actions

This comment has been minimized.

@Avasam Avasam changed the title Run stubtest windows on colorama Run stubtest on windows for colorama Nov 12, 2022
@@ -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: ...
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you temporarily delete these methods and then add them back? I would like to make sure that the CI fails when these are missing.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There you go, fails on windows now :)

@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@JelleZijlstra JelleZijlstra merged commit 24277ce into python:main Nov 13, 2022
@Avasam Avasam deleted the colorama-windows branch November 13, 2022 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants