[clang] [clang][Python] Apply type annotations to Python (PR #173845)

Vlad Serebrennikov via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 12 04:45:31 PST 2026


================
@@ -585,39 +586,41 @@ class TokenGroup:
     You should not instantiate this class outside of this module.
     """
 
-    def __init__(self, tu, memory, count):
-        self._tu = tu
-        self._memory = memory
-        self._count = count
+    def __init__(self, tu: TranslationUnit, memory: Any, count: c_uint) -> None:
----------------
Endilll wrote:

Isn't `memory` at least `c_void_p`?

https://github.com/llvm/llvm-project/pull/173845


More information about the cfe-commits mailing list