[clang] [libclang/python][NFC] Refactor wildcard import of `ctypes` (PR #140191)
Vlad Serebrennikov via cfe-commits
cfe-commits at lists.llvm.org
Thu May 15 22:13:33 PDT 2025
https://github.com/Endilll created https://github.com/llvm/llvm-project/pull/140191
The list is not that long.
>From 10ebe5e6ba45e747b3bee2fe686810abf91ded18 Mon Sep 17 00:00:00 2001
From: Vlad Serebrennikov <serebrennikov.vladislav at gmail.com>
Date: Fri, 16 May 2025 08:12:49 +0300
Subject: [PATCH] [libclang/python][NFC] Refactor wildcard import of `ctypes`
The list is not that long.
---
clang/bindings/python/clang/cindex.py | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)
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
More information about the cfe-commits
mailing list