mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
Python: Fix 'unused import' to no longer give alerts for imported modules used in typehints.
This commit is contained in:
@@ -70,3 +70,9 @@ def f():
|
||||
True
|
||||
'''
|
||||
return 5
|
||||
|
||||
#Used in Python2 type hint
|
||||
import typing
|
||||
|
||||
foo = None # type: typing.Optional[int]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user