Source code for objwatch.utils.util
# MIT License
# Copyright (c) 2025 aeeeeeep
[docs]
def target_handler(o):
if isinstance(o, set):
return list(o)
if hasattr(o, '__dict__'):
return o.__dict__
return str(o)
# MIT License
# Copyright (c) 2025 aeeeeeep
[docs]
def target_handler(o):
if isinstance(o, set):
return list(o)
if hasattr(o, '__dict__'):
return o.__dict__
return str(o)