[pywin32] Improve win32com by donbarbos · Pull Request #15527 · python/typeshed

@donbarbos

@donbarbos

donbarbos

Comment on lines +12 to 13

@type_check_only
class _DispatchCreateClass(Protocol[_T_co]):

Choose a reason for hiding this comment

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

cc @brianschubert I didn’t find any occurrences of this name in the source code (via grep), so I thought this case might also be interesting for your stubtest patch.

Choose a reason for hiding this comment

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

Looks like this is covered by an allowlist entry, which is why it hasn't been flagged yet:

# "dynamic.CDipatch" is necessary for mypy to not throw AssertionError
win32com.client.dynamic.*

Maybe you can refine that while we're here?

@github-actions

This comment has been minimized.

@donbarbos

@github-actions

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