Skip to content

gh-105751: test_ctypes avoids "from ctypes import *" - #105768

Merged
vstinner merged 3 commits into
python:mainfrom
vstinner:test_ctypes_explicit_import
Jun 14, 2023
Merged

vstinner merged 3 commits into
python:mainfrom
vstinner:test_ctypes_explicit_import

Conversation

@vstinner

@vstinner vstinner commented Jun 14, 2023 •

Copy link
Copy Markdown
Member

Using "import *" prevents linters like pyflakes to detect symbols (variables, functions) used being imported.

Replace c_voidp with c_void_p.

Using "import *" prevents linters like pyflakes to detect symbols
(variables, functions) used being imported.

Replace c_voidp with c_void_p.
@vstinner
vstinner disabled auto-merge June 14, 2023 03:09
@vstinner
vstinner enabled auto-merge (squash) June 14, 2023 03:10
@vstinner
vstinner merged commit b95de96 into python:main Jun 14, 2023
@vstinner
vstinner deleted the test_ctypes_explicit_import branch June 27, 2023 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants