Remove workarounds for importing safearrays. #640
Labels
coding style
Topics related to style, formatters, linters, and delinting.
good first issue
Good for newcomers
In the early stages of this project, when Windows CE was still supported, safearrays didn’t work, so a workaround was added in commit 37daf09.
In relation to
safearray
andautomation
, we made changes in #580 to ensure that this runtime workaround wouldn’t confuse the static type system.However, we overlooked the fact that it’s no longer necessary to keep the workaround at runtime when importing
safearray
.Just as we have eliminated remnants of Windows CE support in #211, #304, and #554, the following lines in the current codebase can be updated as shown below.
comtypes/comtypes/automation.py
Lines 15 to 29 in 7c58429
comtypes/comtypes/automation.py
Lines 994 to 997 in 7c58429
I believe there’s room for improvement in the code formatting, but I’ll leave that to the contributor who works on this issue.
The text was updated successfully, but these errors were encountered: