12510 review changes

This commit is contained in:
Arthur 2024-02-01 15:28:01 -08:00
parent 7e07136178
commit c03cd6b2b9

View File

@ -51,9 +51,13 @@ def is_script(obj):
"""
Returns True if the object is a Script.
"""
"""
Returns True if the given object is a Report.
"""
from .reports import Report
from .scripts import Script
try:
return issubclass(obj, Script) and obj != Script
return ((issubclass(obj, Report) and obj != Report) or (issubclass(obj, Script) and obj != Script))
except TypeError:
return False