fix bugs
This commit is contained in:
@ -7,10 +7,18 @@ class ObjectUtils:
|
||||
|
||||
@staticmethod
|
||||
def is_obj(obj: Any):
|
||||
if isinstance(obj, list) or isinstance(obj, dict):
|
||||
if isinstance(obj, list) \
|
||||
or isinstance(obj, dict):
|
||||
return True
|
||||
elif isinstance(obj, str) \
|
||||
or isinstance(obj, int) \
|
||||
or isinstance(obj, float) \
|
||||
or isinstance(obj, bool) \
|
||||
or isinstance(obj, bytes):
|
||||
return False
|
||||
else:
|
||||
return str(obj).startswith("{") or str(obj).startswith("[")
|
||||
return str(obj).startswith("{") \
|
||||
or str(obj).startswith("[")
|
||||
|
||||
@staticmethod
|
||||
def arguments(func: Callable) -> int:
|
||||
|
Reference in New Issue
Block a user