Closed Dclpwos closed 9 months ago
解决了,# At the top of the code, along with the other import
s
from future import annotations
Could you make it more specific? I also have the same error message.
At the beginning of the code, try adding from future import annotations
Traceback (most recent call last): File "G:\quantProjects\DRLquant\Ashare_example\tset.py", line 1, in
from stockstats import StockDataFrame as Sdf
File "D:\ProgramData\Miniconda3\envs\DRLstock\Lib\site-packages\stockstats.py", line 94, in
def set_dft_window(name: str, windows: Union[int, tuple[int, ...]]):
TypeError: 'type' object is not subscriptable