Replace type alias with compatible symbols that can be imported from ctypes.wintypes
.
#662
Labels
good first issue
Good for newcomers
Milestone
The line in
__init__.py
definingDWORD
as an alias forc_ulong
has been present since the project’s earliest commit, 938fbd5.comtypes/comtypes/__init__.py
Line 75 in 083c19e
On the other hand, in commit 56908fd, which added
shelllink.py
two years later,DWORD
was imported fromctypes.wintypes
.comtypes/comtypes/shelllink.py
Line 4 in 083c19e
The originator of
ctypes
andcomtypes
is the same person, and these libraries have historically evolved together, which has led to differences in symbol definitions like this.Now, however, defining these aliases independently holds little value, so we could replace them where possible.
We welcome keeping changes as small as possible per pull request, as it makes it easier for reviewers to check the changes.
If your PR addresses multiple rules or files, reviewers might consider it a large change and suggest splitting it into multiple PRs.
The text was updated successfully, but these errors were encountered: