microsoft / qlib

Qlib is an AI-oriented quantitative investment platform that aims to realize the potential, empower research, and create value using AI technologies in quantitative investment, from exploring ideas to implementing productions. Qlib supports diverse machine learning modeling paradigms. including supervised learning, market dynamics modeling, and RL.
https://qlib.readthedocs.io/en/latest/
MIT License
14.54k stars 2.53k forks source link

Deprecated class Text of module typing #1815

Open RequieMa opened 1 week ago

RequieMa commented 1 week ago

🐛 Bug Description

image

Is this type of pylint suggestion required to consider from your perspective?

SunsetWolf commented 6 days ago

Hi, I pulled the latest code, ran the pylint command, and did not find the problem you describe. I found the error code R0201 in your command, which is not present in the latest code.

The command I used was:

RequieMa commented 6 days ago

Quite weird. I'm using the latest version image I tried with your command. It gave a different error code W4904, but the same reason 'deprecated-class'

qew21 commented 5 days ago

typing.Text can be replaced by str and was deprecated since python 3.11 according to gh-92332.

SunsetWolf commented 4 days ago

Quite weird. I'm using the latest version image I tried with your command. It gave a different error code W4904, but the same reason 'deprecated-class'

I tested gbdt.py after upgrading pylint to 3.2.4 and found no problems.

qew21 commented 4 days ago

W4904 python 3.11.5 pylint 3.2.4