Add missing functools.wraps decorator to filter_call (#5237)

Without this the decorated method object can't be inspected at runtime.
This commit is contained in:
Tony Roberts
2023-07-21 14:45:31 +01:00
committed by GitHub
parent 02b09290e2
commit 948cda9691

View File

@@ -1,4 +1,5 @@
import builtins
from functools import wraps
import pandas as pd
from pydantic import ValidationError
@@ -9,6 +10,7 @@ from openbb_core.app.utils import df_to_basemodel
def filter_call(func):
@wraps(wrapped=func)
def inner(*args, **kwargs):
self = args[0]
debug_mode = (