网站首页
编程语言
数据库
系统相关
其他分享
编程问答
pyflakes
2024-07-22
如何忽略“__init__.py”文件中的 Pyflakes 错误“已导入但未使用”?
我将测试拆分到多个Python文件中:tests├──__init__.py├──test_apples.py└──test_bananas.py.py我将测试导入到“__init__.py”文件中:fromtest_applesimportApplesTestfromtest_bananasimportBananasTest但是在命令行上运行Pyflakes:pyflake