feat 插件API

This commit is contained in:
jxxghp
2023-09-08 15:38:32 +08:00
parent d1f9647a63
commit 678638e9f1
4 changed files with 16 additions and 6 deletions

View File

@ -35,7 +35,7 @@ class ObjectUtils:
"""
检查函数是否已实现
"""
return func.__code__.co_code != b'd\x01S\x00'
return func.__code__.co_code not in [b'd\x01S\x00', b'\x97\x00d\x00S\x00']
@staticmethod
def check_signature(func: FunctionType, *args) -> bool: