github / github/codeql

LGTM.com - false positive - Python import confusing imported module with itself

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

Description

LGTM [flags](https://lgtm.com/projects/g/distributed-system-analysis/pbench/snapshot/22b4f0672b3c0e3fa88b7bbcfdaa0c48184b16eb/files/lib/pbench/agent/redis.py?sort=name&dir=ASC&mode=heatmap#x8ec80db25173311c:1) a Python module as importing itself. However, the module being imported is an external package, `redis`, and the module containing the import is at `pbench.agent.redis`, so, while the two modules have the same name, they are not the same module.

Note: this may be related to #5912.

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.