github / github/codeql

LGTM.com - Python - false positive - Call to a non-callable

Abierto
#1,911 0 comentarios 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**

It is a type that is being used, not a class instance. Please refer to the `cls: Type['BaseTokenVisitor']` annotation. When the `cls(...` is returned, the `__init__` method is called.

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

https://lgtm.com/projects/g/wemake-services/wemake-python-styleguide/snapshot/d6450eb1d6d1d877dc4243132ff272b09cd21a3d/files/wemake_python_styleguide/visitors/base.py#xfb83a789f0f7fb20: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.