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

add Incomplete and Hresult to hints.pyi #532

Merged
merged 2 commits into from
Apr 23, 2024

Conversation

junkmd
Copy link
Collaborator

@junkmd junkmd commented Apr 22, 2024

Hresult

The HRESULT will be returned by calling a com method with no [out] or [out, retval] arguments.

To replicate this runtime behavior, such methods will now be annotated with an integer type for their return value.

However, leaving it as int could lead to misinterpretation of the value, so a type alias named Hresult is prepared to represent that it is one of the integer values of HRESULT.

Incomplete

Parts that cannot be annotated with a detailed type by the typeannotator will be annotated as Incomplete.
This name was inspired by typeshed.

@junkmd junkmd added this to the 1.4.2 milestone Apr 22, 2024
junkmd added a commit to junkmd/pywinauto that referenced this pull request Apr 22, 2024
@junkmd
Copy link
Collaborator Author

junkmd commented Apr 23, 2024

@junkmd junkmd merged commit b046b46 into enthought:main Apr 23, 2024
25 checks passed
@junkmd junkmd deleted the incomplete_and_hresult branch April 23, 2024 00: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.

1 participant