github / github/codeql

LGTM.com - false positive - unused import needed for API

未关闭
#9,651 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
false-positive Python
主要语言
CodeQL
星标
10.1k
派生
2.1k
平均合并
2 天 15 小时
30 天内合并 PR
141

描述

**Description of the false positive**

`Unused import` raised for imports that are carried out just to build the API-structure.

**URL to the alert on the project page on LGTM.com**

- https://lgtm.com/projects/g/hyperspy/hyperspy/snapshot/508d6caf0efc5c0a258c67f5c2ecab8a977c413e/files/hyperspy/_lazy_signals.py?sort=name&dir=ASC&mode=heatmap#xb0feefedc9751814:1
- https://lgtm.com/projects/g/hyperspy/hyperspy/snapshot/508d6caf0efc5c0a258c67f5c2ecab8a977c413e/files/hyperspy/drawing/widgets.py#x7c61e9e86d08ba4e:1
- https://lgtm.com/projects/g/hyperspy/hyperspy/snapshot/508d6caf0efc5c0a258c67f5c2ecab8a977c413e/files/hyperspy/io_plugins/hspy.py#xfe443ac8dbb99926:1
- https://lgtm.com/projects/g/hyperspy/hyperspy/snapshot/508d6caf0efc5c0a258c67f5c2ecab8a977c413e/files/hyperspy/misc/machine_learning/import_sklearn.py#x10662ea808f30f82:1
- https://lgtm.com/projects/g/hyperspy/hyperspy/snapshot/508d6caf0efc5c0a258c67f5c2ecab8a977c413e/files/hyperspy/samfire_utils/fit_tests.py#x5f531cee568f309c:1
- https://lgtm.com/projects/g/hyperspy/hyperspy/snapshot/508d6caf0efc5c0a258c67f5c2ecab8a977c413e/files/hyperspy/datasets/example_signals.py#x1c59a584f5028d6a:1

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。