chore: update yfinance dependency to version 0.2.40 #4517
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
ERROR:root:Failed to load module core.tools.provider.builtin.yahoo.yahoo from /app/api/core/tools/provider/builtin/yahoo/yahoo.py: f-string: unmatched '[' (history.py, line 1207)
Traceback (most recent call last):
File "/app/api/core/utils/module_import_helper.py", line 29, in import_module_from_source
spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/app/api/core/tools/provider/builtin/yahoo/yahoo.py", line 2, in
from core.tools.provider.builtin.yahoo.tools.ticker import YahooFinanceSearchTickerTool
File "/app/api/core/tools/provider/builtin/yahoo/tools/ticker.py", line 4, in
from yfinance import Ticker
File "/usr/local/lib/python3.10/site-packages/yfinance/init.py", line 23, in
from .ticker import Ticker
File "/usr/local/lib/python3.10/site-packages/yfinance/ticker.py", line 28, in
from .base import TickerBase
File "/usr/local/lib/python3.10/site-packages/yfinance/base.py", line 40, in
from .scrapers.history import PriceHistory
File "/usr/local/lib/python3.10/site-packages/yfinance/scrapers/history.py", line 1207
logger.debug(f'price-repair-split: Splits: {str(df['Stock Splits'][split_f].to_dict())}')
^^^^^
SyntaxError: f-string: unmatched '['
ERROR:core.tools.tool_manager:load builtin provider yahoo error: f-string: unmatched '[' (history.py, line 1207)
ranaroussi/yfinance#1942
Fixes # (issue)
Type of Change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Suggested Checklist:
dev/reformat
(backend) andcd web && npx lint-staged
(frontend) to appease the lint godsoptional
I have made corresponding changes to the documentationoptional
I have added tests that prove my fix is effective or that my feature worksoptional
New and existing unit tests pass locally with my changes