Skip to content

Changed the import of ctypes.wintypes from __import__ to a regular import statement#4534

Merged
abravalheri merged 2 commits intopypa:mainfrom
Avasam:regular-import-ctypes.wintypes
Aug 8, 2024
Merged

Changed the import of ctypes.wintypes from __import__ to a regular import statement#4534
abravalheri merged 2 commits intopypa:mainfrom
Avasam:regular-import-ctypes.wintypes

Conversation

@Avasam
Copy link
Copy Markdown
Contributor

@Avasam Avasam commented Aug 1, 2024

Summary of changes

The issue python/cpython#61140 referenced in 1fab75a, has been resolved in Python 3.8.7 https://docs.python.org/3.8/whatsnew/changelog.html#python-3-8-7-release-candidate-1

Even then, the decoractor added in 81b4d92 ensures that this wouldn't be run on non-windows machines anyway.

Resolves a few mypy attr-defined and pyright reportAttributeAccessIssue for #2345

Pull Request Checklist

@Avasam Avasam force-pushed the regular-import-ctypes.wintypes branch from 2a76142 to 80d391c Compare August 1, 2024 00:19
@abravalheri abravalheri merged commit d782093 into pypa:main Aug 8, 2024
@abravalheri
Copy link
Copy Markdown
Contributor

Thank you @Avasam.

@Avasam Avasam deleted the regular-import-ctypes.wintypes branch August 8, 2024 12:55
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