github / github/codeql

LGTM.com - false positive on Python partial (too few arguments)

Aberta
#2,015 0 comentários 0 reações 0 responsáveis Ver no GitHub
false-positive Python
Linguagem predominante
CodeQL
Estrelas
10.1k
Forks
2.1k
Merge médio
2d 15h
PRs com merge (30d)
141

Descrição

**Description of the false positive**

Function/methods wrapped with ``partial`` actually only requires *missing* arguments to be supplied to on-call. The inspection appears to look at the *unwrapped* function, not the partially applied one. Calling the partial with only the missing arguments is thus misreported as supplying too few arguments.

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

https://lgtm.com/projects/g/MatterMiners/tardis/snapshot/7223b600994e311501894b295179d703d164aea4/files/tardis/adapters/sites/cloudstack.py?sort=name&dir=ASC&mode=heatmap#x196a9a30a67761c:1

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.