From 159d72bf1791879df276cfef0922179be5ba6b43 Mon Sep 17 00:00:00 2001 From: Danglewood <85772166+deeleeramone@users.noreply.github.com> Date: Thu, 24 Oct 2024 20:47:34 -0700 Subject: [PATCH] ruff --- openbb_platform/core/openbb_core/app/router.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 )