diff --git a/openbb_platform/core/openbb_core/app/router.py b/openbb_platform/core/openbb_core/app/router.py index 50dac517686..7f3ab8f9870 100644 --- a/openbb_platform/core/openbb_core/app/router.py +++ b/openbb_platform/core/openbb_core/app/router.py @@ -437,7 +437,7 @@ class SignatureInspector: if not isinstance(results_type, type(None)): results_type = results_type_args[0] - is_list = get_origin(results_type) == list + is_list = isinstance(get_origin(results_type), list) inner_type = ( results_type_args[0] if is_list and results_type_args else results_type )