mirror of
https://github.com/github/codeql.git
synced 2026-05-03 04:39:29 +02:00
Python: Fix false positive for cyclic imports guarded by if False:.
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
if False:
|
||||
import module1
|
||||
|
||||
if TYPE_CHECKING:
|
||||
import module1
|
||||
|
||||
x = 1
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
TYPE_CHECKING = False
|
||||
|
||||
Reference in New Issue
Block a user