mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-14 05:14:19 +00:00
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:
@@ -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 = (
|
||||
|
||||
Reference in New Issue
Block a user