github / github/codeql

LGTM.com - false positive - class with `__call__()` method identified as non-callable

Ouverte
#7,287 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
false-positive Python
Langage dominant
CodeQL
Étoiles
10.1k
Forks
2.1k
Merge moyen
2 j 15 h
PR mergées (30 j)
141

Description

**Description of the false positive**

Class [`Fixture`](https://github.com/zarr-developers/zarr-python/blob/e6483f926f322496660847988f27e326bd54cea1/zarr/tests/test_util.py#L191) defines a [`__call__()`](https://github.com/zarr-developers/zarr-python/blob/e6483f926f322496660847988f27e326bd54cea1/zarr/tests/test_util.py#L197) method:

https://github.com/zarr-developers/zarr-python/blob/e6483f926f322496660847988f27e326bd54cea1/zarr/tests/test_util.py#L191-L200

Yet it is identified as non-callable.

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

https://lgtm.com/projects/g/zarr-developers/zarr-python/snapshot/f0dba6e43b6211c9063817d0b6a3a4c4f196fa79/files/zarr/util.py?sort=name&dir=ASC&mode=heatmap#x6ef5147d2db24535:1

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.