Skip to content

Commit 2dc212a

Browse files
committed
fix: support abc.ABCMeta in coerce_function
Signed-off-by: weiyang <weiyang.ones@gmail.com>
1 parent 99ea8a9 commit 2dc212a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ring/func/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def coerce_function(t):
213213
if issubclass(t, (list, tuple)):
214214
return _coerce_list_and_tuple
215215

216-
if t == type:
216+
if t == type or t == abc.ABCMeta:
217217
return _coerce_type
218218

219219
if issubclass(t, dict):

0 commit comments

Comments
 (0)