Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
990 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 Reply

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...