Skip to content

Commit 17853c3

Browse files
authored
[libclang/python][NFC] Refactor wildcard import of ctypes (#140191)
The list is not that long.
1 parent 76ba29b commit 17853c3

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

clang/bindings/python/clang/cindex.py

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,24 @@
6262
#
6363
# o implement additional SourceLocation, SourceRange, and File methods.
6464

65-
from ctypes import *
65+
from ctypes import (
66+
Array,
67+
CDLL,
68+
CFUNCTYPE,
69+
POINTER,
70+
Structure,
71+
byref,
72+
c_char_p,
73+
c_int,
74+
c_longlong,
75+
c_uint,
76+
c_ulong,
77+
c_ulonglong,
78+
c_void_p,
79+
cast,
80+
cdll,
81+
py_object,
82+
)
6683

6784
import os
6885
import sys

0 commit comments

Comments
 (0)