Skip to content

Commit

Permalink
Fix redundant cast after updating to mypy 1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoddemus committed Jul 23, 2024
1 parent 332d665 commit 2670ce0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/oop_ext/foundation/callback/_callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2670ce0

Please sign in to comment.