github / github/codeql

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

Open
#1,911 0 comments 0 reactions 0 assignees View on GitHub
false-positive Python
Dominant language
CodeQL
Stars
10.1k
Forks
2.1k
Avg merge
2d 15h
Merged PRs (30d)
141

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.