Skip to content

Commit

Permalink
Fix type check errors after updating mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoddemus committed Nov 14, 2023
1 parent a1a0df9 commit fbcfc06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/oop_ext/foundation/_tests/test_weak_ref.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def CustomAssertEqual(a, b):
assert False, "{} != {}".format(a, b)


def SetupTestAttributes():
def SetupTestAttributes() -> Any:
class C:
x: int

Expand Down
2 changes: 1 addition & 1 deletion src/oop_ext/foundation/callback/_callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ def Contains(

real_func: Optional[Callable] = func

if real_func.__class__ == WeakMethodProxy:
if isinstance(real_func, WeakMethodProxy):
real_func = cast(WeakMethodProxy, real_func)
real_func = real_func.GetWrappedFunction()

Expand Down

0 comments on commit fbcfc06

Please sign in to comment.