Skip to content

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

Open
@AlexTereshenkov

Description

@AlexTereshenkov

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions