github / github/codeql

LGTM.com - false positive: Conflicting values for attributes w.r.t abstractmethod

Đang mở
#5,287 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
false-positive
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**

LGTM alerted that I have "conflicting values for attributes", but if we check the code, there is no conflict:

* The rightmost superclass has `@abstractmethod` decorator for the method, while
* The leftmost superclass implemented that abstract method

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

https://lgtm.com/projects/g/aio-libs/aiosmtpd/snapshot/f80aed40e36142c228f76ef818901b8f27a2a82e/files/aiosmtpd/controller.py?sort=name&dir=ASC&mode=heatmap#x6e4b5b9c9dfdc9ba:1

https://lgtm.com/projects/g/aio-libs/aiosmtpd/snapshot/f80aed40e36142c228f76ef818901b8f27a2a82e/files/aiosmtpd/controller.py?sort=name&dir=ASC&mode=heatmap#x120237e073ef639d:1

Code links:
* [The @abstractmethod of the rightmost superclass](https://lgtm.com/projects/g/aio-libs/aiosmtpd/snapshot/f80aed40e36142c228f76ef818901b8f27a2a82e/files/aiosmtpd/controller.py?sort=name&dir=ASC&mode=heatmap#L209)
* [The concrete method of the leftmost superclass](https://lgtm.com/projects/g/aio-libs/aiosmtpd/snapshot/f80aed40e36142c228f76ef818901b8f27a2a82e/files/aiosmtpd/controller.py?sort=name&dir=ASC&mode=heatmap#L393)

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.