add di functions

This commit is contained in:
yanyongyu
2021-12-14 01:08:48 +08:00
parent e942f4076c
commit 329a1fd226
6 changed files with 147 additions and 74 deletions

View File

@ -64,7 +64,7 @@ def generic_check_issubclass(
return True
elif origin:
return issubclass(origin, class_or_tuple)
raise
return False
def is_coroutine_callable(call: Callable[..., Any]) -> bool: