Revert Fetcher

This commit is contained in:
Igor Radovanovic
2023-08-21 16:23:43 +02:00
parent d4e0094b4e
commit 122c584e6d
2 changed files with 0 additions and 4 deletions

View File

@@ -1,7 +1,6 @@
### THIS FILE IS AUTO-GENERATED. DO NOT EDIT. ###
from openbb_core.app.static.container import Container

View File

@@ -62,8 +62,5 @@ class Fetcher(Generic[Q, R]):
def _get_data_type(data: Any) -> D: # type: ignore
"""Get the type of the data."""
if get_origin(data) == list:
# TODO: Find a better way to allow for Any data return type
if get_origin(get_args(data)[0]) == dict:
return Fetcher._get_data_type(get_args(data)[0].__args__[1])
data = get_args(data)[0]
return data