Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.0k views
in Technique[技术] by (71.8m points)

sqlalchemy - Flask-SQLAlchemy导入错误。 “进口但未使用”(Flask-SQLAlchemy import error. “Imported but unused”)

I used sqlacodegen to extract the a .py file containing classes of my db tables.

(我使用sqlacodegen提取了一个.py文件,其中包含我的数据库表的类。)

I am using pythonanywhere.

(我正在使用pythonanywhere。)

However for all the imports it is showing that "imported but unused".

(但是,对于所有导入,它都显示“已导入但未使用”。)

You can see though column has been used, it shows the sqlalchemy.Column imported but unused.

(您可以看到虽然已使用了column,但它显示了sqlalchemy.Column导入但未使用。)

Am I doing anything wrong here?

(我在这里做错什么吗?) 进口但未使用

  ask by Gourab Chakraborty translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...