Skip to content

Commit 3ba4594

Browse files
committed
fix(base): include abc.ABCMeta in type coercing condition
Signed-off-by: weiyang <weiyang.ones@gmail.com>
1 parent e723cb7 commit 3ba4594

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
@@ -214,7 +214,7 @@ def coerce_function(t):
214214
if issubclass(t, (list, tuple)):
215215
return _coerce_list_and_tuple
216216

217-
if t is type:
217+
if t is type or t is abc.ABCMeta:
218218
return _coerce_type
219219

220220
if issubclass(t, dict):

0 commit comments

Comments
 (0)