From 2670ce0f93e16d297fecd6ebc66c2a4bdc6becd8 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Tue, 23 Jul 2024 08:44:57 -0300 Subject: [PATCH] Fix redundant cast after updating to mypy 1.11 --- src/oop_ext/foundation/callback/_callback.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/oop_ext/foundation/callback/_callback.py b/src/oop_ext/foundation/callback/_callback.py index 34043b8..412297f 100644 --- a/src/oop_ext/foundation/callback/_callback.py +++ b/src/oop_ext/foundation/callback/_callback.py @@ -392,7 +392,6 @@ def Contains( real_func: Optional[Callable] = func if isinstance(real_func, WeakMethodProxy): - real_func = cast(WeakMethodProxy, real_func) real_func = real_func.GetWrappedFunction() # We must check if it's actually the same, because it may be that the ids we've gotten for