github / github/codeql

LGTM.com - false positive - unused import in `try` statement

Abierto
#9,652 1 comentario 0 reacciones 0 asignados Ver en GitHub
false-positive Python
Lenguaje dominante
CodeQL
Estrellas
10.1k
Forks
2.1k
Merge medio
2 d 15 h
PR fusionados (30 d)
141

Descripción

**Description of the false positive**

`Unused import` reported, when the import is in a `try` statement to check the availability of a package, which determines the tests to be run afterwards. May be good if imports in a `try` statement are excempt from such a report.

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

https://lgtm.com/projects/g/hyperspy/hyperspy/snapshot/508d6caf0efc5c0a258c67f5c2ecab8a977c413e/files/hyperspy/conftest.py#x4aef4cf8f643dffd:1

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.