Skip to content

Conversation

@Avasam
Copy link
Collaborator

@Avasam Avasam commented Nov 7, 2022

Turned off ignore_missing_stub. Tested locally on Windows. Added missing types. Updated stubtest_allowlist.txt

win32com.client.CLSIDToClass
win32com.client.connect
# Necessary for mypy to not throw AssertionError
# dynamic.CDipatch Necessary for mypy to not throw AssertionError
Copy link
Member

Choose a reason for hiding this comment

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

copy-paste error?

Copy link
Collaborator Author

@Avasam Avasam Nov 7, 2022

Choose a reason for hiding this comment

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

I'm just being more explicit. N should be lowercase and I could wrap the class name in quotes.
I myself misunderstood my own comment as meaning this allowlist entry is somehow preventing mypy from failing (or maybe that mypy was failing if I stubbed the module). When it's actually: "I would exclude this stub if it wasn't for mypy failing due to this definition missing". So I figured it'd be good to be a bit more clear.

@github-actions

This comment has been minimized.

@Avasam Avasam requested a review from JelleZijlstra November 9, 2022 15:05
@github-actions
Copy link
Contributor

github-actions bot commented Nov 9, 2022

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

@JelleZijlstra JelleZijlstra merged commit 0ac98f6 into python:main Nov 10, 2022
@Avasam Avasam deleted the pywin32-mypy-990 branch February 29, 2024 00:47
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.

2 participants