Skip to content

Fix pywin32 GetClipboardData issue #12825 #13046

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

Merged
merged 2 commits into from
Nov 20, 2024

Conversation

kbaikov
Copy link
Contributor

@kbaikov kbaikov commented Nov 19, 2024

Also did a fly-by fix constants to Final.

Fixes #12825

This comment has been minimized.

@kbaikov
Copy link
Contributor Author

kbaikov commented Nov 20, 2024

friendly ping @Avasam

from win32.lib.pywintypes import error as error

def ChangeClipboardChain(hWndRemove: int, hWndNewNext: int, /): ...
def CloseClipboard(): ...
def CountClipboardFormats(): ...
def EmptyClipboard(): ...
def EnumClipboardFormats(_format: int = ..., /): ...
def GetClipboardData(_format, /) -> str: ...
def GetClipboardData(_format, /) -> Any: ...
Copy link
Collaborator

Choose a reason for hiding this comment

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

We now require an explanation (comment) of the possible types allowed for Any types.

Copy link
Contributor

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

@JelleZijlstra JelleZijlstra merged commit 1cbfc75 into python:main Nov 20, 2024
48 checks passed
@kbaikov kbaikov deleted the fix-GetClipboardData branch November 20, 2024 16:46
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.

Wrong win32clipboard.GetClipboardData return type annotations
3 participants