Python: Add false negative test case.

This commit is contained in:
Taus
2021-07-20 12:54:06 +00:00
committed by GitHub
parent 233ae5a54b
commit bbcbcefedc

View File

@@ -9,3 +9,8 @@ def type_annotation(x):
else:
foo : float
do_other_stuff_with(foo)
def type_annotation_fn():
# False negative: the value of `bar` is never used, but this is masked by the presence of the type annotation.
bar = 5
bar : int