mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-02-08 04:58:24 +08:00
12 lines
258 B
Python
12 lines
258 B
Python
from typing import Any
|
|
|
|
|
|
class ObjectUtils:
|
|
|
|
@staticmethod
|
|
def is_obj(obj: Any):
|
|
if isinstance(obj, list) or isinstance(obj, dict):
|
|
return True
|
|
else:
|
|
return str(obj).startswith("{") or str(obj).startswith("[")
|