Skip to content

Update CoClassBaseClass repr to not always include None as a submodule #2574

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Avasam
Copy link
Collaborator

@Avasam Avasam commented Apr 19, 2025

Extracted from #2555

__doc__ will always be None because it references com/win32com/client/__init__.py's docstring (I believe this class was part of the gen_py generation a long tiem ago).

Before:

>>> from win32com.client import gencache
>>> repr(gencache.EnsureModule("{6BCDCB60-5605-11D0-AE5F-CADD4C000000}", 0, 1, 1).ArrayTest())
'<win32com.gen_py.None.ArrayTest>'

After:

>>> from win32com.client import gencache
>>> repr(gencache.EnsureModule("{6BCDCB60-5605-11D0-AE5F-CADD4C000000}", 0, 1, 1).ArrayTest())
'<win32com.gen_py.6BCDCB60-5605-11D0-AE5F-CADD4C000000x0x1x1.ArrayTest>'

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