We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 233ae5a commit bbcbcefCopy full SHA for bbcbcef
python/ql/test/query-tests/Variables/unused/type_annotation_fp.py
@@ -9,3 +9,8 @@ def type_annotation(x):
9
else:
10
foo : float
11
do_other_stuff_with(foo)
12
+
13
+def type_annotation_fn():
14
+ # False negative: the value of `bar` is never used, but this is masked by the presence of the type annotation.
15
+ bar = 5
16
+ bar : int
0 commit comments