Skip to content

Commit d1206ea

Browse files
yoffRasmusWL
andauthored
Update python/ql/test/library-tests/ApiGraphs/py3/test_captured_inheritance.py
Co-authored-by: Rasmus Wriedt Larsen <[email protected]>
1 parent 64068f1 commit d1206ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/ql/test/library-tests/ApiGraphs/py3/test_captured_inheritance.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ def other_func():
1616
# On the next line, we wish to express that it is not possible for `Bar` to be a subclass of `A`.
1717
# However, we have no "true negative" annotation, so we use the MISSING annotation instead.
1818
# (Normally, "true negative" is not needed as all applicable annotations must be present,
19-
# but for type tracking tests, this would be excessive.)
19+
# but these API graph tests work differently, since having all results recorded in annotations
20+
# would be excessive)
2021
print(Bar) #$ use=moduleImport("foo").getMember("B").getASubclass() MISSING: use=moduleImport("foo").getMember("A").getASubclass()
2122
print(Baz) #$ use=moduleImport("foo").getMember("B").getASubclass() SPURIOUS: use=moduleImport("foo").getMember("A").getASubclass()
2223

0 commit comments

Comments
 (0)