提交 f0e558ea 编写于 作者: Z zhhsplendid

Format better code, test=develop

上级 fd7fd0c4
...@@ -69,8 +69,7 @@ def is_unsupported(func): ...@@ -69,8 +69,7 @@ def is_unsupported(func):
for m in BUILTIN_LIKELY_MODULES: for m in BUILTIN_LIKELY_MODULES:
for v in m.__dict__.values(): for v in m.__dict__.values():
func_in_dict = func == v func_in_dict = func == v
if isinstance(func_in_dict, list) or isinstance(func_in_dict, if isinstance(func_in_dict, (list, numpy.ndarray)):
numpy.ndarray):
func_in_dict = any(func_in_dict) func_in_dict = any(func_in_dict)
if func_in_dict: if func_in_dict:
func_in_builtin_modules = True func_in_builtin_modules = True
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册