Python: Fix 'unused import' to no longer give alerts for imported modules used in typehints.

This commit is contained in:
Mark Shannon
2019-01-22 17:38:09 +00:00
parent e82e7791fa
commit 547b3eb973
3 changed files with 24 additions and 0 deletions

View File

@@ -70,3 +70,9 @@ def f():
True
'''
return 5
#Used in Python2 type hint
import typing
foo = None # type: typing.Optional[int]