github / github/codeql

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

Aperta
#1,911 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
false-positive Python
Lingua principale
CodeQL
Stelle
10.1k
Fork
2.1k
Merge medio
2g 15h
PR unite (30g)
141

Descrizione

**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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.