github / github/codeql

LGTM.com - false positive: Python metaclass

オープン
#2,445 コメント 10 件 リアクション 2 件 担当者 1 名 @BekaValentine が担当を希望しています GitHub で見る
false-positive Python
主要言語
CodeQL
スター
10.1k
フォーク
2.1k
平均マージ
2日 15時間
マージ済み PR(30日)
141

説明

**Description of the false positive**
Classes may have metaclasses in Python. If the **metaclass** has a `__call__` function, then calling the **class** should require the same number of arguments than the `__call__` function of the **metaclass** has.
See [https://docs.python.org/3/reference/datamodel.html#object.__call__](https://docs.python.org/3/reference/datamodel.html#object.__call__)

**URL to the alert on the project page on LGTM.com**: https://lgtm.com/projects/g/secdev/scapy/snapshot/4d06eb2812a98a1001478bf06e033fbbb2afbef7/files/scapy/sendrecv.py#L844

See:

> Call to PcapReader.__init__ with too few arguments; should be no fewer than 3.

If you need more help understanding the issue ping me and I'll make a snippet. This code isn't the easiest to catch on

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。