[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


================
@@ -234,9 +241,9 @@ class CachedProperty(Generic[TInstance, TResult]):
     """
 
     def __init__(self, wrapped: Callable[[TInstance], TResult]):
-        self.wrapped = wrapped
+        self.wrapped: Callable[[TInstance], TResult] = wrapped
----------------
Endilll wrote:

Why do we need to repeat this long and complicated type when it's spelled on the previous line?

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


More information about the cfe-commits mailing list