LGTM.com - Python - false positive - Call to a non-callable
Đang mở
false-positive
Python
- Ngôn ngữ chính
- CodeQL
- Star
- 10.1k
- Fork
- 2.1k
- Merge trung bình
- 2 ngày 15 giờ
- Pull request đã merge (30 ngày)
- 141
Mô tả
**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
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.