TradingAgents/tradingagents/dataflows/findmind.py

20 lines
479 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# -*- coding: utf-8 -*-
"""
此檔案為向後相容的別名模組。
正確的模組名稱為 finmind不是 findmind
請改用from tradingagents.dataflows import finmind
"""
# 重新匯出所有 finmind 模組的內容
from .finmind import *
# 發出棄用警告
import warnings
warnings.warn(
"模組名稱 'findmind' 已棄用,請改用 'finmind'"
"例如from tradingagents.dataflows import finmind",
DeprecationWarning,
stacklevel=2
)