Skip to content

Comments

#104 fix deprecation ts#105

Open
onlsol wants to merge 1 commit intoValueRaider:mainfrom
onlsol:main
Open

#104 fix deprecation ts#105
onlsol wants to merge 1 commit intoValueRaider:mainfrom
onlsol:main

Conversation

@onlsol
Copy link

@onlsol onlsol commented Jan 30, 2026

#104 fix: replace deprecated Timestamp.utcnow() and 'd' frequency/timedelta

fix: replace deprecated Timestamp.utcnow() and 'd' frequency/timedelta
@ValueRaider
Copy link
Owner

ValueRaider commented Jan 31, 2026

The file ~/.cache/py-yfinance-cache/options.json (created by yfc_cache_manager.py) stores max_age values in deprecated format. If this file was created before the fix, it contains lowercase 'd' values which trigger warnings.

Try adding an upgrade function to yfc_upgrade, and call it in the init. You can see previous times I've fixed cache.

Don't upgrade options, instead convert d -> D internally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants