Skip to content

Commit

Permalink
Merge pull request #1913 from vittoboa/add_functools_wraps_to_wrapper
Browse files Browse the repository at this point in the history
Fix help(yf.download) not showing the information about the function
  • Loading branch information
ValueRaider authored Apr 22, 2024
2 parents 82a3145 + f8e8eec commit 94e3833
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion yfinance/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import re as _re
import sys as _sys
import threading
from functools import lru_cache
from functools import lru_cache, wraps
from inspect import getmembers
from types import FunctionType
from typing import List, Optional
Expand Down Expand Up @@ -95,6 +95,7 @@ def get_indented_logger(name=None):


def log_indent_decorator(func):
@wraps(func)
def wrapper(*args, **kwargs):
logger = get_indented_logger('yfinance')
logger.debug(f'Entering {func.__name__}()')
Expand Down

0 comments on commit 94e3833

Please sign in to comment.