github / github/codeql

LGTM.com - false positive class may not be initialized properly

Open
#5,259 2 comments 0 reactions 0 assignees View on GitHub
false-positive not security Python
Dominant language
CodeQL
Stars
10.1k
Forks
2.1k
Avg merge
2d 15h
Merged PRs (30d)
141

Description

**Description**

The warning basically says this: "Class TimeOutHTTPAdapter may not be initialized properly as method BaseAdapter.__init__ is not called from its __init__ method.", where TimeOutHTTPAdapter is a subclass of HttpAdapter and that one is another subclass of BaseAdapter, all those classes are being correctly initialized by calling the __init__ method but LGTM.com doesn't recognize that, one thing is that maybe is because the first class TimeOutHTTPAdapter it's a project class and the other 2 are classes inside a library.

**https://lgtm.com/projects/g/rsksmart/lumino/snapshot/28f42bfd334b5c1b708b3470804185cf3d81f6c5/files/tools/scenario-player/scenario_player/utils.py?sort=name&dir=ASC&mode=heatmap#xb094a3d8ad865534:1**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.