mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-01 15:01:18 +00:00
Revert Fetcher
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
### THIS FILE IS AUTO-GENERATED. DO NOT EDIT. ###
|
||||
|
||||
|
||||
|
||||
from openbb_core.app.static.container import Container
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user