diff --git a/hatchet_sdk/utils/typing.py b/hatchet_sdk/utils/typing.py index 4a6d968a..db111db5 100644 --- a/hatchet_sdk/utils/typing.py +++ b/hatchet_sdk/utils/typing.py @@ -6,4 +6,7 @@ def is_basemodel_subclass(model: Any) -> bool: - return isinstance(model, type) and issubclass(model, BaseModel) + try: + return issubclass(model, BaseModel) + except TypeError: + return False