Skip to content

Commit 31663ba

Browse files
committed
isinstance -> issubclass
1 parent d272686 commit 31663ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord/components.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ def _handle_model(
633633
def_type = None
634634

635635
for typ, (st, dt) in instances_mapping.items():
636-
if isinstance(model, typ):
636+
if issubclass(obj_type, typ):
637637
sel_types = st
638638
def_type = dt
639639
break

0 commit comments

Comments
 (0)