Author: Vlad Serebrennikov
Date: 2025-05-16T11:05:10+04:00
New Revision: 17853c3a5f59fff72f2e5071d24a365043219376

URL: 
https://github.com/llvm/llvm-project/commit/17853c3a5f59fff72f2e5071d24a365043219376
DIFF: 
https://github.com/llvm/llvm-project/commit/17853c3a5f59fff72f2e5071d24a365043219376.diff

LOG: [libclang/python][NFC] Refactor wildcard import of `ctypes` (#140191)

The list is not that long.

Added: 
    

Modified: 
    clang/bindings/python/clang/cindex.py

Removed: 
    


################################################################################
diff  --git a/clang/bindings/python/clang/cindex.py 
b/clang/bindings/python/clang/cindex.py
index 4ff7f318416b7..1bbe006fcb1b9 100644
--- a/clang/bindings/python/clang/cindex.py
+++ b/clang/bindings/python/clang/cindex.py
@@ -62,7 +62,24 @@
 #
 # o implement additional SourceLocation, SourceRange, and File methods.
 
-from ctypes import *
+from ctypes import (
+    Array,
+    CDLL,
+    CFUNCTYPE,
+    POINTER,
+    Structure,
+    byref,
+    c_char_p,
+    c_int,
+    c_longlong,
+    c_uint,
+    c_ulong,
+    c_ulonglong,
+    c_void_p,
+    cast,
+    cdll,
+    py_object,
+)
 
 import os
 import sys


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to