Skip to content

Commit

Permalink
Update src/magicgui/_util.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Czaki authored Nov 23, 2024
1 parent e25ddee commit dbdbd07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/magicgui/_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def _safe_isinstance_tuple(obj: object, superclass: object) -> bool:

def safe_issubclass(obj: object, superclass: object) -> bool:
"""Safely check if obj is a subclass of superclass."""
if obj == superclass:
if obj is superclass:
return True
if isinstance(superclass, tuple):
return any(safe_issubclass(obj, s) for s in superclass)
Expand Down

0 comments on commit dbdbd07

Please sign in to comment.